Skip to content

Commit

Permalink
fix(testing): 14.0.0 jest migration errors when additional configura…
Browse files Browse the repository at this point in the history
…tions are specified
  • Loading branch information
skrtheboss committed May 6, 2022
1 parent d6f49ea commit 5dc5429
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ describe('Jest Migration (v14.0.0)', () => {
jestConfig: 'libs/lib-one/jest.config.js',
passWithNoTests: true,
},
configurations: {
production: {
silent: true,
},
},
},
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export async function updateJestConfigExt(tree: Tree) {
(options, projectName, target, configuration) => {
const projectConfig = readProjectConfiguration(tree, projectName);

if (!isJestConfigValid(tree, options)) {
if (!options.jestConfig || !isJestConfigValid(tree, options)) {
return;
}

Expand Down

1 comment on commit 5dc5429

@vercel
Copy link

@vercel vercel bot commented on 5dc5429 May 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app

Please sign in to comment.