Skip to content

Commit

Permalink
chore: update playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Jan 6, 2025
1 parent 49eb83b commit 8871221
Show file tree
Hide file tree
Showing 3 changed files with 485 additions and 260 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@nx/web": "19.3.2",
"@nx/webpack": "19.3.2",
"@nx/workspace": "19.3.2",
"@playwright/experimental-ct-react": "^1.41.2",
"@playwright/experimental-ct-react": "1.48.2",
"@rnx-kit/eslint-plugin": "0.5.3",
"@storybook/addon-docs": "7.6.17",
"@storybook/addon-essentials": "7.6.17",
Expand Down
4 changes: 3 additions & 1 deletion packages/nx-plugin/src/executors/playwright/executor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { execSync, fork } from 'node:child_process';
import * as path from 'node:path';
import {
type ExecutorContext,
getPackageManagerCommand,
Expand Down Expand Up @@ -114,7 +115,8 @@ function createArgs(
*/
function runPlaywright(args: string[], cwd: string) {
try {
const cli = require.resolve('@playwright/experimental-ct-core/cli');
const module = require.resolve('@playwright/experimental-ct-react');
const cli = path.join(path.dirname(module), 'cli.js');

return fork(cli, ['test', ...args], {
stdio: ['pipe', 'pipe', 'pipe', 'ipc'],
Expand Down
Loading

0 comments on commit 8871221

Please sign in to comment.