File tree 4 files changed +8
-5
lines changed
4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,15 @@ jobs:
13
13
with :
14
14
node-version : latest
15
15
16
- - uses : pnpm/action-setup@v2
16
+ - uses : pnpm/action-setup@v3
17
17
with :
18
18
version : 8
19
19
run_install : true
20
20
21
21
- run : pnpm test -- --coverage
22
+ env :
23
+ NODE_OPTIONS : --experimental-vm-modules
22
24
23
25
- run : pnpm run type-coverage
24
26
25
- - uses : codecov/codecov-action@v3
27
+ - uses : codecov/codecov-action@v4
Original file line number Diff line number Diff line change 1
- module . exports = {
1
+ export default {
2
2
coverageDirectory : "coverage" ,
3
3
coverageProvider : "v8" ,
4
- preset : "ts-jest" ,
4
+ preset : "ts-jest/presets/default-esm " ,
5
5
clearMocks : true ,
6
6
testMatch : [ "<rootDir>/index.spec.ts" ] ,
7
7
} ;
Original file line number Diff line number Diff line change 18
18
" index.js" ,
19
19
" index.d.ts"
20
20
],
21
+ "type" : " module" ,
21
22
"main" : " index.js" ,
22
23
"types" : " index.d.ts" ,
23
24
"typeCoverage" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"target" : " ESNext" ,
4
- "module" : " CommonJS " ,
4
+ "module" : " ESNext " ,
5
5
"moduleResolution" : " Node" ,
6
6
"lib" : [" ESNext" ],
7
7
"declaration" : true ,
You can’t perform that action at this time.
0 commit comments