spectator
Angular
spectator | Angular | |
---|---|---|
14 | 699 | |
2,036 | 94,599 | |
0.5% | 0.3% | |
6.9 | 10.0 | |
8 days ago | 4 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
spectator
-
Informal AMA: Angular Signals RFC
Is the Angular team aware of NG Mocks and NG Spectator?
-
Testing angular course?
I tried a couple of courses several years ago but honestly didn't find them very helpful. (That was several years ago, so things may have changed since then.) What I did find immensely helpful was installing @ngneat/spectator and reading over its documentation. Its APIs are so much simpler and more ergonomic that it didn't take long to memorize the workflow and get to be productive with it.
-
Does anyone use spectator(https://github.com/ngneat/spectator) as a tool for unit tests with Angular?
Does anyone use spectator(https://github.com/ngneat/spectator) as a tool for unit tests with Angular
-
Ng-News: Episode 22/44
ngneat.github.io
-
Unit tests - how I hate them
Follow https://testing-angular.com/. I use https://github.com/ngneat/spectator instead of Angular weird test boilerplate
-
Is Unit Testing in Angular overrated?
If your looking for a way to make testing simpler check out https://github.com/ngneat/spectator
- Angular testing in 2022
-
7 Costly Mistakes That One Needs to Avoid in Angular Test Automation
I've had huge success using spectator https://github.com/ngneat/spectator
-
Spec file "Cannot read property of 'subscribe' of undefined"
Another possibility is to look into Spectator https://github.com/ngneat/spectator. In Spectator, you can add mocks with a simple array. I have a blog series on it here https://medium.com/ngconf/introduction-to-spectator-4d03edf514dd. The next part talking about how to mock observables should be published soon.
-
Codebase that shows how Angular should be done?
I have been reading the spectator code quite a bit. "GitHub - ngneat/spectator: π¦ π A Powerful Tool to Simplify Your Angular Tests" https://github.com/ngneat/spectator
Angular
-
Angular Signals, Reactive Context, and Dynamic Dependency Tracking
/** * https://github.com/angular/angular/blob/75a186e321cb417685b2f13e9961906fc0aed36c/packages/core/src/render3/reactivity/untracked.ts#L15 * * packages/core/src/render3/reactivity/untracked.ts * **/ export function untracked(nonReactiveReadsFn: () => T): T { const prevConsumer = setActiveConsumer(null); try { return nonReactiveReadsFn(); } finally { setActiveConsumer(prevConsumer); } }
- Episode 24/15: Wiz behind the curtain, Copilot in VSCode
-
Always unsubscribe. No exceptions. Debate closed.
source: https://github.com/angular/angular/issues/46542
-
Angular Signals: Best Practices
Besides the dangers, mentioned by Angular docs (infinite loops, change detection errors), there is another thing, that might be quite nasty: effects are executed in a reactive context, and any code you call in effect, will be executed in a reactive context. If that code reads some signals, they will be added as dependencies to your effect. Here Alex Rickabaugh explains the details.
-
Understanding control flow syntax in Angular 17
In June 2023, the Angular team raised a new RFC to implement control flow syntaxes within Angular. They gave the following rationale for introducing control flow syntax:
- Episode 24/09: Testing without TestBed, SSR & Hydration
-
Preparing our Code for Zoneless Angular
For scheduling, I use awesome code I found in the Angular source code.
-
β° Itβs time to talk about Import Map, Micro Frontend, and Nx Monorepo
Just to give you more context, I led the migration of several AngularJS applications to the newer Angular Framework. My client finally decided to make that move following the AngularJS deprecation announcement (stay up to date please π)οΈ.
-
Conventional commit specification
Link β angular/CONTRIBUTING.md
-
Angular Control Flow: the complete guide
Angular v17 was released some months ago with a ton of new features, a brand new logo and the new blog angular.dev.
What are some alternatives?
ng-mocks - Angular testing library for mocking components, directives, pipes, services and facilitating TestBed setup
Next.js - The React Framework
angular-testing-library - π Simple and complete Angular testing utilities that encourage good testing practices
qwik - Instant-loading web apps, without effort
Playwright - Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
SvelteKit - web development, streamlined
generator-ngx-rocket - :rocket: Extensible Angular 14+ enterprise-grade project generator
Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.
angular-module-teardown-options - Angular module teardown options for testing.
solid - A declarative, efficient, and flexible JavaScript library for building user interfaces.
angular-realworld-example-app - Exemplary real world application built with Angular
lit - Lit is a simple library for building fast, lightweight web components.