Skip to content

Commit

Permalink
fix(testing): add null checks when reading targets (#21952)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder authored Feb 22, 2024
1 parent 836012b commit 21e7648
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
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 21e7648

Please sign in to comment.