getsaf / shallow-render

Angular testing made easy with shallow rendering and easy mocking. https://getsaf.github.io/shallow-render
MIT License
273 stars 25 forks source link

TypeError: compiler_1.DirectiveResolver is not a constructor #214

Closed dean-g closed 2 years ago

dean-g commented 2 years ago
I am getting the following error with my angular upgrade.

Test suite failed to run

    TypeError: compiler_1.DirectiveResolver is not a constructor

    > 1 | import { Shallow } from 'shallow-render';

 at Object.<anonymous> (../../node_modules/shallow-render/lib/tools/reflect.ts:5:34)
      at Object.<anonymous> (../../node_modules/shallow-render/lib/tools/get-ng-module-annotations.ts:3:1)
      at Object.<anonymous> (../../node_modules/shallow-render/lib/tools/create-test-module.ts:5:1)
      at Object.<anonymous> (../../node_modules/shallow-render/lib/models/renderer.ts:6:1)
      at Object.<anonymous> (../../node_modules/shallow-render/lib/shallow.ts:6:1)
      at Object.<anonymous> (../../node_modules/shallow-render/index.ts:1:1)

Can someone please check this and advise?
dean-g commented 2 years ago

it worked with the 13.0.1 version!