Cédric Duffournet

Results comments of Cédric Duffournet

I think this is because angular-cli has not been released yet, still in v9.1.0.

@timdeschryver can I take this one ? I already checked the review that has been made on this PR : https://github.com/ngrx/platform/pull/3230

ok, actually i did check the example, this error occur only when I add `provideMockStore` to `providers` in `configureTestingModule` so I thought it was NgRx issue. I don't think it...

I posted an issue in jest-preset-angular repo (https://github.com/thymikee/jest-preset-angular/issues/1187). My config seems to be ok. > It seems like Angular 13 has changed something and that made provideMockStore no longer works...

if I disable `destroyAfterEach` in `configureTestingModule` all test pass https://github.com/cedricduffournet/test-ngrx-error/blob/master/src/app/books/containers/collection-page.component.spec.ts#L40 successfully

@brandonroberts I think this is a NgRx package issue. In angular V13 `destroyAfterEach` is activated by default (https://dev.to/this-is-angular/improving-angular-tests-by-enabling-angular-testing-module-teardown-38kh) In `mock_store.ts` file, `resetSelectors` is executed in `afterEach` (https://github.com/ngrx/platform/blob/master/modules/store/testing/src/mock_store.ts#L21), but because TestBed...

maybe we could use `shouldTearDownTestingModule` and write something like this ? ```ts if (typeof afterEach === 'function') { afterEach(() => { try { const testBed = getTestBed() as any; const...

Sorry I made a mistake in the reproduction, to run jest : `yarn jest`

I think it should be fixed as `destroyAfterEach` is this is the default value in angular 13, and` jest-circus` is default testRunner in `jest`. Or maybe it should be mentionned...

@brandonroberts I can propose a PR if you'd like based on this https://github.com/ngrx/platform/issues/3243#issuecomment-973153702 ?