WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 80e2457

Browse files
committed
chore: fix node 12 test
1 parent f65b575 commit 80e2457

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: pnpm test
3737

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

4141
- name: DTS test
4242
run: pnpm test:tsd

tests/test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import task from '../dist/index.mjs';
2+
3+
task(`hi ${process.version}`, () => {});

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Node 12
55
"target": "ES2019",
66
"jsx": "react",
7-
"module": "Node16",
7+
"module": "Preserve",
88
"strict": true,
99
"esModuleInterop": true,
1010
"isolatedModules": true,

0 commit comments

Comments
 (0)