Skip to content

Commit

Permalink
fix(testing): add null checks when reading targets
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Feb 22, 2024
1 parent dc8f579 commit 7949e49
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -70,9 +70,9 @@ export async function createJestConfig(
);

if (
rootProjectConfig.targets['test']?.executor === 'nx:run-commands'
? rootProjectConfig.targets['test']?.command !== 'jest'
: rootProjectConfig.targets['test']?.options?.jestConfig !==
rootProjectConfig.targets?.['test']?.executor === 'nx:run-commands'
? rootProjectConfig.targets?.['test']?.command !== 'jest'
: rootProjectConfig.targets?.['test']?.options?.jestConfig !==
rootJestPath
) {
// Jest target has already been updated
Expand Down

0 comments on commit 7949e49

Please sign in to comment.