Skip to content

Commit 57c6b20

Browse files
committed
fix(testing): forward top level args to plugin
1 parent a1e0d3c commit 57c6b20

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/jest/src/plugins/plugin.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ async function buildJestTargets(
317317
presetCache
318318
);
319319
const targetGroup = [];
320-
const dependsOn: string[] = [];
320+
const dependsOn: TargetConfiguration['dependsOn'] = [];
321321
metadata = {
322322
targetGroups: {
323323
[groupName]: targetGroup,
@@ -339,7 +339,12 @@ async function buildJestTargets(
339339
}
340340

341341
const targetName = `${options.ciTargetName}--${relativePath}`;
342-
dependsOn.push(targetName);
342+
dependsOn.push({
343+
target: targetName,
344+
projects: 'self',
345+
params: 'forward',
346+
});
347+
343348
targets[targetName] = {
344349
command: `jest ${relativePath}`,
345350
cache,

0 commit comments

Comments
 (0)