Skip to content

Commit

Permalink
test: simpler setup, use jest alpha to support import.meta.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Feb 20, 2025
1 parent 89f8837 commit 851d17f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ jobs:
- name: Install and test with Node
run: |
node -v && npm -v
npm install --no-save jest jest-extended esbuild lightningcss
npm install --no-save esbuild lightningcss jest@>=30.0.0-alpha.4 jest-extended
npm test -- --coverage
if: ${{ matrix.tool == 'node+jest' }}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ bun test

# Node
npm install
npm install --no-save esbuild lightningcss jest jest-extended
npm install --no-save esbuild lightningcss jest@>=30.0.0-alpha.4 jest-extended
npm test
```

Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"scripts": {
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand"
},
"overrides": {
"jest-extended": {
"jest": "$jest"
}
},
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/setup-jest.js"
Expand Down

0 comments on commit 851d17f

Please sign in to comment.