We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 836012b commit 21e7648Copy full SHA for 21e7648
packages/jest/src/generators/configuration/lib/create-jest-config.ts
@@ -70,9 +70,9 @@ export async function createJestConfig(
70
);
71
72
if (
73
- rootProjectConfig.targets['test']?.executor === 'nx:run-commands'
74
- ? rootProjectConfig.targets['test']?.command !== 'jest'
75
- : rootProjectConfig.targets['test']?.options?.jestConfig !==
+ rootProjectConfig.targets?.['test']?.executor === 'nx:run-commands'
+ ? rootProjectConfig.targets?.['test']?.command !== 'jest'
+ : rootProjectConfig.targets?.['test']?.options?.jestConfig !==
76
rootJestPath
77
) {
78
// Jest target has already been updated
0 commit comments