Skip to content

Commit

Permalink
fix(testing): make sure jest-environment-dom is always installed
Browse files Browse the repository at this point in the history
  • Loading branch information
barbados-clemens committed Oct 21, 2022
1 parent d6285a5 commit a9ac1e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/jest/migrations.json
Expand Up @@ -205,6 +205,12 @@
"version": "~28.1.1",
"alwaysAddToPackageJson": false
}
},
"15.0.1-beta.3": {
"jest-environment-jsdom": {
"version": "~28.1.1",
"alwaysAddToPackageJson": true
}
}
}
}
Expand Down
Expand Up @@ -83,9 +83,7 @@ export function checkDeps(tree: Tree): Record<string, string> {
const packageJson = readJson(tree, 'package.json');
let devDeps = {};

if (packageJson.devDependencies['jest-preset-angular']) {
devDeps['jest-environment-jsdom'] = jestVersion;
}
devDeps['jest-environment-jsdom'] = jestVersion;

const rootJestConfig = findRootJestConfig(tree);
if (rootJestConfig) {
Expand Down

0 comments on commit a9ac1e8

Please sign in to comment.