Skip to content

Commit 9469d5b

Browse files
authored
[fix] Running npm test on GA (#31)
1 parent 3f6a7c9 commit 9469d5b

3 files changed

Lines changed: 9 additions & 13 deletions

File tree

.github/workflows/release-package.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
with:
2121
cmd: install # will run `yarn install` command
2222

23-
- name: Install node_modules
24-
run: rm -rf node_modules && yarn install --frozen-lockfile
25-
2623
- name: Run test
2724
run: npm test
2825

@@ -40,9 +37,6 @@ jobs:
4037
with:
4138
node-version: 16.x
4239
registry-url: https://npm.pkg.github.com/
43-
44-
- name: Install node_modules
45-
run: rm -rf node_modules && yarn install --frozen-lockfile
4640

4741
- name: Publish package
4842
run: npm publish

jest.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"moduleFileExtensions": ["ts", "js"],
3-
"transform": {
4-
"\\.ts$": "ts-jest"
5-
},
6-
"testMatch": ["**/__tests__/**/*.spec.ts"]
7-
}
2+
"moduleFileExtensions": ["ts", "js"],
3+
"transform": {
4+
"\\.ts$": "ts-jest"
5+
},
6+
"testMatch": ["**/__tests__/**/*.spec.ts"],
7+
"rootDir": "./"
8+
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
"skipLibCheck": true,
1212
},
1313
"include": ["src/**/*"],
14-
"exclude": ["node_modules", "dist", "example", "__tests__"]
14+
"exclude": ["node_modules", "dist", "example", "__tests__"],
15+
"esModuleInterop": true
1516
}

0 commit comments

Comments
 (0)