Skip to content

Commit

Permalink
fix(testing): fix test files pattern for jest inferred split tasks (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Apr 26, 2024
1 parent 3122f2a commit 3265510
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jest/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
CreateNodes,
CreateNodesContext,
joinPathFragments,
normalizePath,
NxJsonConfiguration,
ProjectConfiguration,
readJsonFile,
Expand Down Expand Up @@ -195,7 +196,7 @@ async function buildJestTargets(
targetGroup.push(options.ciTargetName);

for (const testPath of testPaths) {
const relativePath = normalize(
const relativePath = normalizePath(
relative(join(context.workspaceRoot, projectRoot), testPath)
);
const targetName = `${options.ciTargetName}--${relativePath}`;
Expand Down

0 comments on commit 3265510

Please sign in to comment.