Skip to content

Commit

Permalink
fix(testing): install devkit when init playwright
Browse files Browse the repository at this point in the history
playwright generated config uses `@nx/devkit` which is not installed via playwright plugin
This usually works bc devkit is installed, but when using nx global install with
playwright an error is through saying it cannot find devkit
  • Loading branch information
barbados-clemens committed Oct 3, 2023
1 parent df83e0e commit 985a7af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/playwright/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export async function initGenerator(tree: Tree, options: InitGeneratorSchema) {
{},
{
'@nx/playwright': nxVersion,
// required since used in playwright config
'@nx/devkit': nxVersion,
'@playwright/test': playwrightVersion,
}
)
Expand Down

0 comments on commit 985a7af

Please sign in to comment.