Skip to content

Commit

Permalink
test: use import option and run test on Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
yudai-nkt committed Apr 3, 2024
1 parent 198d022 commit de2829b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "tsc --build tsconfig.build.json",
"format": "biome format . --write",
"lint": "biome check .",
"test": "node --loader=tsx/esm src/jsx-runtime.test.tsx",
"test": "node --import=tsx/esm src/jsx-runtime.test.tsx",
"prebuild": "node --eval 'fs.rmSync(`dist`, { recursive: true, force: true })'",
"prepack": "npm run build -- --force"
},
Expand Down

0 comments on commit de2829b

Please sign in to comment.