fix(testing): playwright plugin enoent error (#21951)
This commit is contained in:
parent
95b77f8fb0
commit
836012b67a
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user