Skip to content

Commit

Permalink
Move serializers setup to jest config to be possible to override them (
Browse files Browse the repository at this point in the history
  • Loading branch information
yurii-sorokin authored and thymikee committed Feb 22, 2018
1 parent a567e5b commit e09970a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions jest-preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,9 @@
},
"transformIgnorePatterns": [
"node_modules/(?!@ngrx)"
],
"snapshotSerializers": [
"<rootDir>/node_modules/jest-preset-angular/AngularSnapshotSerializer.js",
"<rootDir>/node_modules/jest-preset-angular/HTMLCommentSerializer.js"
]
}
3 changes: 0 additions & 3 deletions setupJest.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,3 @@ getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
);

expect.addSnapshotSerializer(HTMLCommentSerializer);
expect.addSnapshotSerializer(AngularSnapshotSerializer);

0 comments on commit e09970a

Please sign in to comment.