We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
^14.2.2
cd jest-preset-angular/examples/example-app-v17
yarn
ng add @ngrx/store@17 --no-minimal
app.config
import { provideHttpClient } from '@angular/common/http'; import { importProvidersFrom } from '@angular/core'; import { provideProtractorTestingSupport } from '@angular/platform-browser'; import { provideRouter } from '@angular/router'; import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; import { routes } from './app.routes'; import { InMemoryDataService } from './in-memory-data.service'; import { HeroService, UserService } from './model'; import { TwainService } from './twain/twain.service'; import { provideStore } from '@ngrx/store'; import { reducers, metaReducers } from './reducers'; export const appProviders = [ provideRouter(routes), provideHttpClient(), provideProtractorTestingSupport(), importProvidersFrom(HttpClientInMemoryWebApiModule.forRoot(InMemoryDataService, { dataEncapsulation: false })), HeroService, TwainService, UserService, provideStore(reducers, { metaReducers }), ]; export const appConfig = { providers: appProviders, };
yarn test-esm
for all test you will get an error SyntaxError: The requested module '@angular/core/rxjs-interop' does not provide an export named 'toSignal'
SyntaxError: The requested module '@angular/core/rxjs-interop' does not provide an export named 'toSignal'
All tests to pass successfully if ngrx store is added
after adding ngrx store tests fail
None
System: Apple M1 Mac
The text was updated successfully, but these errors were encountered:
Is there any workaround for this error?
Sorry, something went wrong.
Either use karma and Jasmine or don't use signal
This issue only happens if you use Jest in ESM mode. CJS mode works fine
Yes, CJS works just fine but is slow. I am trying to speed up my tests using experimental ESM mode.
I tried to investigate this issue a while ago. I couldn't get so far but it has to do something with Jest runtime
No branches or pull requests
Version
^14.2.2
Steps to reproduce
cd jest-preset-angular/examples/example-app-v17
yarn
ng add @ngrx/store@17 --no-minimal
app.config
looks like thisyarn test-esm
for all test you will get an error
SyntaxError: The requested module '@angular/core/rxjs-interop' does not provide an export named 'toSignal'
Expected behavior
All tests to pass successfully if ngrx store is added
Actual behavior
after adding ngrx store tests fail
Additional context
None
Environment
The text was updated successfully, but these errors were encountered: