Comments (6)
Here's an example of the problem: https://gist.github.com/euangoddard/d5f63ab13153fac5e99789b406293e6a
This use-case is a lot more simplistic than I have and in the example given I could override the provider when I set up the testing module. That option isn't available to me in the real case
from spectator.
Thanks, this is a great idea. I am quite busy right now, but I would love to see a PR.
from spectator.
It will be great if you add a small example, so others ( or me ) will try to add this too.
from spectator.
This is the line where change detection is triggered:
https://github.com/NetanelBasal/ngx-easy-test/blob/master/src/easy-test.ts#L165
Try remove it temporarily and see if it's working.
from spectator.
We have new API the support your request. Check it.
from spectator.
That looks perfect. I'll try it out when I get a chance. Many thanks for this!
from spectator.
Related Issues (20)
- { shallow: true } doesn't mock standalone components/directives/pipes HOT 3
- inject does not find directive provider
- Support Angular 17 HOT 2
- Cannot resolve "styleUrl"
- Add support for input signals HOT 14
- Do not import `@jest/globals` outside of the Jest test environment HOT 2
- Testing for functional guards HOT 4
- Spectator#setInput does not to update UI Elements for Components with changeDetectionStrategy OnPush HOT 6
- TypeError: Cannot read properties of undefined (reading 'Playthrough') HOT 1
- Support of Web Test Runner HOT 1
- setInput doesn't respect the alias names HOT 7
- Spectator is forcing to add a transform explicitly if input() has got a transform function HOT 4
- Cannot pass props which are not input() type in createComponent() HOT 7
- Angular 17 - input with transform HOT 8
- Angular 17 signal required input HOT 4
- Host component's `ngOnChanges` is not called when testing directive using `createDirectiveFactory`
- setInput was removed? HOT 5
- Signal input is not recognized in component HOT 1
- Make spectator zoneless-compatible
- Adds support for runInInjectionContext
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spectator.