Skip to content

Commit eff3052

Browse files
authored
feat: support jest **27.0.0-next.6** (#897)
1 parent 218b217 commit eff3052

File tree

3 files changed

+478
-452
lines changed

3 files changed

+478
-452
lines changed

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -50,41 +50,41 @@
5050
"postpublish": "pinst --enable"
5151
},
5252
"dependencies": {
53-
"jest-environment-jsdom": "27.0.0-next.5",
54-
"pretty-format": "27.0.0-next.5",
55-
"ts-jest": "27.0.0-next.9"
53+
"jest-environment-jsdom": "27.0.0-next.6",
54+
"pretty-format": "27.0.0-next.6",
55+
"ts-jest": "27.0.0-next.10"
5656
},
5757
"peerDependencies": {
5858
"@angular-devkit/build-angular": ">=0.901.12",
5959
"@angular/core": ">=9.0.0",
60-
"jest": "27.0.0-next.5"
60+
"jest": "27.0.0-next.6"
6161
},
6262
"optionalDependencies": {
63-
"webpack": "5.26.3"
63+
"webpack": "5.28.0"
6464
},
6565
"devDependencies": {
66-
"@angular-devkit/build-angular": "^0.1102.5",
66+
"@angular-devkit/build-angular": "^0.1102.6",
6767
"@angular-eslint/eslint-plugin": "^2.0.2",
6868
"@angular-eslint/eslint-plugin-template": "^2.0.2",
6969
"@angular-eslint/template-parser": "^2.0.2",
70-
"@angular/animations": "^11.2.6",
71-
"@angular/common": "^11.2.6",
72-
"@angular/compiler": "^11.2.6",
73-
"@angular/compiler-cli": "^11.2.6",
74-
"@angular/core": "^11.2.6",
75-
"@angular/platform-browser": "^11.2.6",
76-
"@angular/platform-browser-dynamic": "^11.2.6",
70+
"@angular/animations": "^11.2.7",
71+
"@angular/common": "^11.2.7",
72+
"@angular/compiler": "^11.2.7",
73+
"@angular/compiler-cli": "^11.2.7",
74+
"@angular/core": "^11.2.7",
75+
"@angular/platform-browser": "^11.2.7",
76+
"@angular/platform-browser-dynamic": "^11.2.7",
7777
"@commitlint/cli": "^12.1.0",
7878
"@commitlint/config-angular": "^12.0.1",
79-
"@jest/globals": "27.0.0-next.5",
80-
"@jest/transform": "27.0.0-next.5",
79+
"@jest/globals": "27.0.0-next.6",
80+
"@jest/transform": "27.0.0-next.6",
8181
"@jest/types": "27.0.0-next.3",
82-
"@types/jest": "^26.0.21",
83-
"@types/node": "^14.14.35",
84-
"@typescript-eslint/eslint-plugin": "^4.18.0",
85-
"@typescript-eslint/parser": "^4.18.0",
82+
"@types/jest": "^26.0.22",
83+
"@types/node": "^14.14.37",
84+
"@typescript-eslint/eslint-plugin": "^4.20.0",
85+
"@typescript-eslint/parser": "^4.20.0",
8686
"conventional-changelog-cli": "^2.1.1",
87-
"eslint": "^7.22.0",
87+
"eslint": "^7.23.0",
8888
"eslint-config-prettier": "^8.1.0",
8989
"eslint-plugin-import": "^2.22.1",
9090
"eslint-plugin-jest": "^24.3.2",
@@ -93,12 +93,12 @@
9393
"eslint-plugin-prettier": "^3.3.1",
9494
"execa": "^5.0.0",
9595
"glob": "^7.1.6",
96-
"husky": "^5.1.3",
97-
"jest": "27.0.0-next.5",
96+
"husky": "^6.0.0",
97+
"jest": "27.0.0-next.6",
9898
"lint-staged": "^10.5.4",
9999
"pinst": "^2.1.6",
100100
"prettier": "^2.2.1",
101-
"rxjs": "^6.6.6",
101+
"rxjs": "^6.6.7",
102102
"tslib": "^2.1.0",
103103
"typescript": "^4.1.3",
104104
"zone.js": "^0.11.4"

src/__tests__/ng-jest-compiler.spec.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ describe('NgJestCompiler', () => {
4747
// @ts-expect-error testing purpose
4848
const makeTransformersSpy = jest.spyOn(compiler, '_makeTransformers');
4949

50-
compiler.getCompiledOutput(fileContent, fileName, true);
50+
compiler.getCompiledOutput(fileContent, fileName, {
51+
watchMode: false,
52+
supportsStaticESM: useESM,
53+
depGraphs: new Map(),
54+
});
5155

5256
expect(makeTransformersSpy.mock.results[0].value).toMatchSnapshot();
5357
},

0 commit comments

Comments
 (0)