Skip to content

Commit

Permalink
feat: exclude ng-jest-resolver from default/esm presets (#1440)
Browse files Browse the repository at this point in the history
BREAKING CHANGE
Jest 28 correctly resolves Angular package format files so the `ng-jest-resolver` can be marked as optional
  • Loading branch information
ahnpnl authored Apr 30, 2022
1 parent 84fa5b4 commit 56673c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion presets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const basePreset = {
stringifyContentPathRegex: '\\.(html|svg)$',
},
},
resolver: 'jest-preset-angular/build/resolvers/ng-jest-resolver.js',
testEnvironment: 'jsdom',
moduleFileExtensions: ['ts', 'html', 'js', 'json', 'mjs'],
snapshotSerializers,
Expand Down
2 changes: 0 additions & 2 deletions src/config/__snapshots__/jest-preset.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Object {
"json",
"mjs",
],
"resolver": "jest-preset-angular/build/resolvers/ng-jest-resolver.js",
"snapshotSerializers": Array [
"jest-preset-angular/build/serializers/html-comment",
"jest-preset-angular/build/serializers/ng-snapshot",
Expand Down Expand Up @@ -53,7 +52,6 @@ Object {
"moduleNameMapper": Object {
"tslib": "tslib/tslib.es6.js",
},
"resolver": "jest-preset-angular/build/resolvers/ng-jest-resolver.js",
"snapshotSerializers": Array [
"jest-preset-angular/build/serializers/html-comment",
"jest-preset-angular/build/serializers/ng-snapshot",
Expand Down

0 comments on commit 56673c4

Please sign in to comment.