Open jamesbarrett95 opened 5 years ago
Note that matchers (and pretty much all other jasmine configuration calls) are wiped after every spec. If you intend to install them globally, you should use beforeEach
, not beforeAll
. That might fix it for you.
Hi there,
I'm currently using this package in my Angular 8 project with Jasmine + Karma as dependancies. When I add the matchers and run an assertion, I receive an
Property [nameOfProperty] does not exist on type Matchers<typeOfElement>
when running the tests.package.json (relevant packages):
karma.conf.js:
app.component.spec.ts:
I'm unsure if this is a config error or a bug whereby using the package with Angular isn't possible.
Any help would be much appreciated.