Skip to content

Commit 5e2d843

Browse files
committed
Migrate to playwright/test
1 parent 7aaef26 commit 5e2d843

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
}
6868
},
6969
"scripts": {
70-
"test": "jest",
70+
"test": "playwright test",
71+
"test:debug": "DEBUG=pw:browser* playwright test",
7172
"start": "electron .",
7273
"start:debug": "ELECTRON_ENABLE_LOGGING=1 electron .",
7374
"icon": "rimraf assets/generated && electron-icon-maker --input=assets/youtube-music.png --output=assets/generated",
@@ -120,6 +121,7 @@
120121
"ytpl": "^2.3.0"
121122
},
122123
"devDependencies": {
124+
"@playwright/test": "^1.25.1",
123125
"auto-changelog": "^2.4.0",
124126
"electron": "^18.3.9",
125127
"electron-builder": "^23.0.3",

plugins/sponsorblock/tests/segments.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const { test, expect } = require("@playwright/test");
2+
13
const { sortSegments } = require("../segments");
24

35
test("Segment sorting", () => {

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,14 @@
13061306
resolved "https://registry.yarnpkg.com/@nornagon/put/-/put-0.0.8.tgz#9d497ec46c9364acc3f8b59aa3cf8ee4134ae337"
13071307
integrity sha512-ugvXJjwF5ldtUpa7D95kruNJ41yFQDEKyF5CW4TgKJnh+W/zmlBzXXeKTyqIgwMFrkePN2JqOBqcF0M0oOunow==
13081308

1309+
"@playwright/test@^1.25.1":
1310+
version "1.25.1"
1311+
resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.25.1.tgz#9847234b6f2b0cca71962b338da7db366a1e9720"
1312+
integrity sha512-IJ4X0yOakXtwkhbnNzKkaIgXe6df7u3H3FnuhI9Jqh+CdO0e/lYQlDLYiyI9cnXK8E7UAppAWP+VqAv6VX7HQg==
1313+
dependencies:
1314+
"@types/node" "*"
1315+
playwright-core "1.25.1"
1316+
13091317
"@remusao/guess-url-type@^1.1.2":
13101318
version "1.2.1"
13111319
resolved "https://registry.yarnpkg.com/@remusao/guess-url-type/-/guess-url-type-1.2.1.tgz#b3e7c32abdf98d0fb4f93cc67cad580b5fe4ba57"

0 commit comments

Comments
 (0)