You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
So I am using the following library: https://github.com/jscutlery/devkit to write component tests for Angular components.
A test is defined with the mount function like so:
mount(MyComponent, {
providers: [],
...
})
Describe the solution you'd like
I would like to be able to make use of auto-spies to be able to mock out return values on services to verify different rendered states of the component visually.
So using this:
let myServiceSpy: Spy<MyService>;
provideAutoSpy(MyService),
myServiceSpy = TestBed.inject<any>(MyService);
Additional context
When providing that auto-spy an error is thrown indicating that jasmine or jest is not defined. I am assuming here that we might need to make use of cypress mocking framework, which is Sinon under the hood.
The text was updated successfully, but these errors were encountered:
In order to support cypress we first need to create a port of this library for mocha
I'm talking to Jordan Powell from the Cypress team and he needs to get back to me if he thinks it's a good fit
Is your feature request related to a problem? Please describe.
So I am using the following library: https://github.com/jscutlery/devkit to write component tests for Angular components.
A test is defined with the
mount
function like so:Describe the solution you'd like
I would like to be able to make use of auto-spies to be able to mock out return values on services to verify different rendered states of the component visually.
So using this:
inside the
and mock the return value later in the test
Describe alternatives you've considered
None
Additional context
When providing that auto-spy an error is thrown indicating that
jasmine
orjest
is not defined. I am assuming here that we might need to make use of cypress mocking framework, which is Sinon under the hood.The text was updated successfully, but these errors were encountered: