Skip to content

Commit

Permalink
chore: optimize report logic
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushaw committed Jul 28, 2024
1 parent 84befd4 commit 79659fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/playwright-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"@modern-js/module-tools": "2.56.1",
"@modern-js/plugin-testing": "2.56.1",
"@playwright/test": "^1.44.1",
"@playwright/test": "1.44.1",
"@types/jest": "~29.2.4",
"@types/node": "~16.11.7",
"eslint-plugin-prettier": "~4.2.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/playwright-demo/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ export default defineConfig({
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
forbidOnly: Boolean(process.env.CI),
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
// reporter: 'html',
reporter: '@midscene/web/playwright-report',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
Expand Down
2 changes: 1 addition & 1 deletion packages/visualizer-report/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"reset": "npx rimraf ./**/node_modules",
"dev": "modern dev",
"build": "modern deploy",
"build": "MODERNJS_DEPLOY=node modern deploy",
"start": "modern start",
"serve": "modern serve",
"new": "modern new",
Expand Down

0 comments on commit 79659fb

Please sign in to comment.