Skip to content

Commit

Permalink
Legg til playright test på lint-staged. Endre github actions til å kj…
Browse files Browse the repository at this point in the history
…øre verbose for å få logging av tester i actions
  • Loading branch information
ssaegrov committed Sep 21, 2023
1 parent fa5af3a commit 696f78f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
run: npx playwright install chromium --with-deps

- name: Run Playwright Tests
run: npm run playwright
run: npm run playwright:verbose

- name: Store Artifacts from Failed Tests
if: failure()
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"start": "ts-node ./server/server.ts",
"type-check": "tsc --project tsconfig.json",
"prepare": "husky install",
"playwright": "DEBUG=pw:api npx playwright test",
"playwright": "npx playwright test",
"playwright:ui": "npx playwright test --ui",
"playwright:verbose": "DEBUG=pw:api npx playwright test",
"test": "vitest",
"test-coverage": "vitest --coverage"
},
Expand All @@ -20,7 +21,8 @@
"*.{js,jsx,ts,tsx}": [
"prettier --list-different",
"eslint --max-warnings 0",
"bash -c 'npm run type-check'"
"bash -c 'npm run type-check'",
"bash -c 'npm run playwright'"
]
},
"dependencies": {
Expand Down

0 comments on commit 696f78f

Please sign in to comment.