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 and jaysoo committed Feb 23, 2024
1 parent e8209ec commit b1fa2bd
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 b1fa2bd

Please sign in to comment.