Skip to content

Commit fe7aa70

Browse files
committed
test: simpler setup, use jest alpha to support import.meta.resolve
1 parent 1b2aac2 commit fe7aa70

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ jobs:
5050
- name: Install and test with Node
5151
run: |
5252
node -v && npm -v
53-
npm install --no-save jest jest-extended esbuild lightningcss
53+
npm install --no-save esbuild lightningcss jest@>=30.0.0-alpha.4 jest-extended
5454
npm test -- --coverage
5555
if: ${{ matrix.tool == 'node+jest' }}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ bun test
6060

6161
# Node
6262
npm install
63-
npm install --no-save esbuild lightningcss jest jest-extended
63+
npm install --no-save esbuild lightningcss jest@>=30.0.0-alpha.4 jest-extended
6464
npm test
6565
```
6666

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
"scripts": {
1515
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand"
1616
},
17+
"overrides": {
18+
"jest-extended": {
19+
"jest": "$jest"
20+
}
21+
},
1722
"jest": {
1823
"setupFilesAfterEnv": [
1924
"<rootDir>/setup-jest.js"

packages/nuejs/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
},
2525
"jest": {
2626
"setupFilesAfterEnv": [
27-
"jest-extended/all",
2827
"<rootDir>/../../setup-jest.js"
2928
]
3029
}

0 commit comments

Comments
 (0)