Skip to content

Commit

Permalink
Bump TypeScript and Playwright dependencies; update test match patter…
Browse files Browse the repository at this point in the history
…ns in Playwright config
  • Loading branch information
NoamGaash committed Dec 23, 2024
1 parent cf83630 commit 96682a4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,18 @@
"@types/har-format": "^1.2.14"
},
"devDependencies": {
"@playwright/test": "^1.39.0",
"@playwright/test": "^1.49.0",
"@types/node": "^22.9.3",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"eslint": "^8.51.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"prettier": "^3.0.3",
"typescript": "^5.2.2"
"typescript": "^5.7.2"
},
"peerDependencies": {
"playwright": "^1.35.0"
},
"repository": {
"type": "git",
Expand All @@ -45,5 +48,6 @@
"network",
"intercept",
"route"
]
],
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
5 changes: 3 additions & 2 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ export default defineConfig({
{
name: "setup",
use: { ...devices["Desktop Chrome"] },
testMatch: /setup.ts/,
testMatch: /tests\/setup\.spec\.ts/,
},
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
dependencies: ["setup"],
teardown: "delete temp har files",
testMatch: /tests\/(?!setup|teardown).+\.spec\.ts/,
},
{
name: "delete temp har files",
use: { ...devices["Desktop Chrome"] },
testMatch: /teardown.ts/,
testMatch: /tests\/teardown\.spec\.ts/,
}
],
});
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"compilerOptions": {
"target": "ES6",
"target": "ES2017",
"module": "commonjs",
"declaration": true,
"outDir": "./lib",
"strict": true,
"sourceMap": true
"sourceMap": true,
"downlevelIteration": true
},
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*"]
Expand Down

0 comments on commit 96682a4

Please sign in to comment.