Skip to content

Commit

Permalink
chore: fix node 12 test
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Feb 12, 2025
1 parent f65b575 commit 80e2457
Show file tree
Hide file tree
Showing 3 changed files with 5 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 @@ -36,7 +36,7 @@ jobs:
run: pnpm test

- name: Test Node.js v12
run: pnpm --use-node-version=12.22.12 test
run: pnpm --use-node-version=12.22.12 node ./tests/test.js

- name: DTS test
run: pnpm test:tsd
Expand Down
3 changes: 3 additions & 0 deletions tests/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import task from '../dist/index.mjs';

task(`hi ${process.version}`, () => {});
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Node 12
"target": "ES2019",
"jsx": "react",
"module": "Node16",
"module": "Preserve",
"strict": true,
"esModuleInterop": true,
"isolatedModules": true,
Expand Down

0 comments on commit 80e2457

Please sign in to comment.