Skip to content

Commit

Permalink
fix(testing): playwright plugin enoent error
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Feb 22, 2024
1 parent 00dae6a commit 02496cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playwright/src/plugins/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const createNodes: CreateNodes<PlaywrightPluginOptions> = [
const projectRoot = dirname(configFilePath);

// Do not create a project if package.json and project.json isn't there.
const siblingFiles = readdirSync(projectRoot);
const siblingFiles = readdirSync(join(context.workspaceRoot, projectRoot));
if (
!siblingFiles.includes('package.json') &&
!siblingFiles.includes('project.json')
Expand Down

0 comments on commit 02496cb

Please sign in to comment.