Open akshaymhetre opened 5 years ago
Referred following doc to integrate Jest with angular : https://medium.com/@nerdic.coder/how-to-use-jest-unit-tests-with-angular-87509b500158
Apart from this, was getting TS:2339 : property 'toMatchSnapshot' does not exist on type Matchers<ComponentFixture
Resolved this by adding globals diagnosis configuration (also added options which were default for jest-preset-angular)
"jest": {
"preset": "jest-preset-angular",
"setupFilesAfterEnv": [
"
Child of #1075
Snapshot based unit testing for UI