File tree 3 files changed +10
-4
lines changed
3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 43
43
path : |
44
44
dist
45
45
!dist/*.txt
46
+ - name : Upload test coverage report
47
+ uses : actions/upload-artifact@v4
48
+ with :
49
+ name : test-coverage
50
+ path : |
51
+ test/coverage/lcov-report
46
52
47
53
- name : Publish Docs
48
54
if : github.ref == 'refs/heads/main'
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ module.exports = {
20
20
collectCoverage : true ,
21
21
22
22
// An array of glob patterns indicating a set of files for which coverage information should be collected
23
- // collectCoverageFrom: undefined ,
23
+ collectCoverageFrom : [ 'src/**/*.js' ] ,
24
24
25
25
// The directory where Jest should output its coverage files
26
- coverageDirectory : 'coverage' ,
26
+ coverageDirectory : 'test/ coverage' ,
27
27
28
28
// An array of regexp pattern strings used to skip coverage collection
29
29
// coveragePathIgnorePatterns: [
@@ -130,7 +130,7 @@ module.exports = {
130
130
// runner: "jest-runner",
131
131
132
132
// The paths to modules that run some code to configure or set up the testing environment before each test
133
- setupFiles : [ './jest.setup.js' , './@runtime.mock.js' ] ,
133
+ setupFiles : [ './test/ jest.setup.js' , './test /@runtime.mock.js' ] ,
134
134
135
135
// A list of paths to modules that run some code to configure or set up the testing framework before each test
136
136
// setupFilesAfterEnv: [],
Original file line number Diff line number Diff line change 21
21
"lint:fix" : " npx eslint --fix src" ,
22
22
"pretest" : " npm run lint" ,
23
23
"test:mocha" : " mocha test/**/*.test.js" ,
24
- "test:jest" : " jest --config test/ jest.config.js" ,
24
+ "test:jest" : " jest --config jest.config.js" ,
25
25
"test" : " npm run test:mocha && npm run test:jest" ,
26
26
"types" : " tsc --project ./build/tsconfig.json" ,
27
27
"types:test" : " tsc --project ./build/tsconfig.test.json" ,
You can’t perform that action at this time.
0 commit comments