Skip to content

Commit 836012b

Browse files
authored
fix(testing): playwright plugin enoent error (#21951)
1 parent 95b77f8 commit 836012b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/playwright/src/plugins/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const createNodes: CreateNodes<PlaywrightPluginOptions> = [
6565
const projectRoot = dirname(configFilePath);
6666

6767
// Do not create a project if package.json and project.json isn't there.
68-
const siblingFiles = readdirSync(projectRoot);
68+
const siblingFiles = readdirSync(join(context.workspaceRoot, projectRoot));
6969
if (
7070
!siblingFiles.includes('package.json') &&
7171
!siblingFiles.includes('project.json')

0 commit comments

Comments
 (0)