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 2, 2023
1 parent 23c7b50 commit 16f4f1a
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 16f4f1a

Please sign in to comment.