Skip to content

Commit

Permalink
chore(testing): move cypress invocations of parseTargetString to pass…
Browse files Browse the repository at this point in the history
… executor context (#19134)
  • Loading branch information
AgentEnder authored Sep 20, 2023
1 parent 9a919a0 commit 8b7b1e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cypress/src/executors/cypress/cypress.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async function* startDevServer(

const parsedDevServerTarget = parseTargetString(
opts.devServerTarget,
context.projectGraph
context
);

const [targetSupportsWatchOpt] = getValueFromSchema(
Expand Down
3 changes: 2 additions & 1 deletion packages/cypress/src/utils/find-target-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ function findInTarget(
options: FindTargetOptions
): TargetConfiguration {
const { project, target, configuration } = parseTargetString(
options.buildTarget
options.buildTarget,
graph
);
const projectConfig = readProjectConfiguration(tree, project);
const executorName = projectConfig?.targets?.[target]?.executor;
Expand Down

0 comments on commit 8b7b1e4

Please sign in to comment.