feat(testing): update Jest and its dependencies to v25

This commit is contained in:
Jonathan Cammisuli 2020-03-27 13:51:32 -04:00 committed by Victor Savkin
parent 09c4654ae9
commit 0ad6f91ff8
5 changed files with 745 additions and 686 deletions

View File

@ -76,6 +76,7 @@ function patchPackageJsonDeps(addWorkspace = true) {
const angularPath = path.join(getCwd(), 'build', 'packages', 'angular');
const reactPath = path.join(getCwd(), 'build', 'packages', 'react');
const storybookPath = path.join(getCwd(), 'build', 'packages', 'storybook');
const jestPath = path.join(getCwd(), 'build', 'packages', 'jest');
if (addWorkspace) {
p.devDependencies['@nrwl/workspace'] = `file:${workspacePath}`;
@ -83,6 +84,7 @@ function patchPackageJsonDeps(addWorkspace = true) {
p.devDependencies['@nrwl/angular'] = `file:${angularPath}`;
p.devDependencies['@nrwl/react'] = `file:${reactPath}`;
p.devDependencies['@nrwl/storybook'] = `file:${storybookPath}`;
p.devDependencies['@nrwl/jest'] = `file:${jestPath}`;
writeFileSync(tmpProjPath('package.json'), JSON.stringify(p, null, 2));
}
@ -211,6 +213,7 @@ export function copyMissingPackages(): void {
'ng-packagr',
'cypress',
'@jest',
'jest',
'@types/jest',
'@types/node',

View File

@ -88,7 +88,7 @@
"@types/fs-extra": "7.0.0",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/jest": "24.9.1",
"@types/jest": "25.1.4",
"@types/node": "10.0.1",
"@types/prettier": "^1.10.0",
"@types/react": "16.9.17",
@ -154,9 +154,9 @@
"jasmine-core": "~2.99.1",
"jasmine-marbles": "~0.6.0",
"jasmine-spec-reporter": "~4.2.1",
"jest": "^24.9.0",
"jest": "^25.2.3",
"jest-jasmine2": "^25.1.0",
"jest-preset-angular": "8.0.0",
"jest-preset-angular": "8.1.2",
"jest-worker": "^25.1.0",
"karma": "~4.0.0",
"karma-chrome-launcher": "~2.2.0",

View File

@ -4,4 +4,4 @@ export const angularDevkitVersion = '0.900.1';
export const angularJsVersion = '1.6.6';
export const ngrxVersion = '9.0.0';
export const rxjsVersion = '~6.5.0';
export const jestPresetAngularVersion = '8.0.0';
export const jestPresetAngularVersion = '8.1.2';

View File

@ -1,4 +1,4 @@
export const nxVersion = '*';
export const jestVersion = '24.9.0';
export const jestTypesVersion = '24.9.1';
export const tsJestVersion = '24.0.0';
export const jestVersion = '25.2.3';
export const jestTypesVersion = '25.1.4';
export const tsJestVersion = '25.2.1';

1414
yarn.lock

File diff suppressed because it is too large Load Diff