Skip to content

Commit 214bc3c

Browse files
committed
test: init jest
1 parent 4c79a8e commit 214bc3c

8 files changed

Lines changed: 2579 additions & 143 deletions

File tree

.github/workflows/dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515
strategy:
1616
matrix:
1717
node-version: [16.x]
@@ -67,7 +67,7 @@ jobs:
6767
!temp/release/*-id.txt
6868
6969
sync-locale:
70-
runs-on: ubuntu-latest
70+
runs-on: ubuntu-24.04
7171
strategy:
7272
matrix:
7373
node-version: [16.x]

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515
strategy:
1616
matrix:
1717
node-version: [16.x]
@@ -35,7 +35,7 @@ jobs:
3535
name: dist
3636
path: dist_firefox_v3
3737
build-docs:
38-
runs-on: ubuntu-latest
38+
runs-on: ubuntu-24.04
3939
strategy:
4040
matrix:
4141
node-version: [16.x]

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515
strategy:
1616
matrix:
1717
node-version: [16.x]

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"eslint:fix": "npm run eslint -- --fix",
2121
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
2222
"release": "node ./scripts/release.mjs",
23-
"pack": "node ./scripts/pack.mjs"
23+
"pack": "node ./scripts/pack.mjs",
24+
"test:e2e": "jest --config ./test/e2e/jest.config.json"
2425
},
2526
"dependencies": {
2627
"@codemirror/lang-javascript": "^6.1.4",
@@ -68,9 +69,12 @@
6869
"fs-extra": "^11.1.1",
6970
"husky": "^3.1.0",
7071
"ice.js": "^2.0.0",
72+
"jest": "^29.7.0",
73+
"jest-puppeteer": "^11.0.0",
7174
"lint-staged": "^13.2.2",
7275
"lodash": "^4.17.21",
7376
"prettier": "^3.3.2",
77+
"puppeteer-core": "24.7.2",
7478
"rimraf": "^6.0.1",
7579
"sign-addon": "^6.0.0",
7680
"stylelint": "^13.7.2",

0 commit comments

Comments
 (0)