File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 36
36
- name : Run tests
37
37
run : |
38
38
npm t
39
+
40
+ - name : Upload coverage results to Coveralls
41
+ uses : coverallsapp/github-action@master
42
+ with :
43
+ github-token : ${{ secrets.GITHUB_TOKEN }}
44
+ path-to-lcov : ./test/coverage/lcov.info
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
2
preset : 'ts-jest' ,
3
3
testEnvironment : 'jsdom' ,
4
+ ollectCoverage : true ,
5
+ coverageDirectory : './test/coverage' ,
6
+ coverageReporters : [ 'lcov' ] ,
7
+ collectCoverageFrom : [
8
+ './src/**/*.{js,ts}' ,
9
+ './tests/**/*.test.ts' ,
10
+ '!**/node_modules/**' ,
11
+ '!**/vendor/**' ,
12
+ '!**/vendor/**' ,
13
+ ] ,
4
14
}
Original file line number Diff line number Diff line change 29
29
"build:umd" : " webpack" ,
30
30
"types-generate" : " dts-gen -m '@supabase/storage-js' -s" ,
31
31
"test" : " run-s test:clean test:infra test:suite test:clean" ,
32
- "test:suite" : " jest --runInBand" ,
32
+ "test:suite" : " jest --runInBand --coverage " ,
33
33
"test:infra" : " cd infra && docker compose down && docker compose up -d --build && sleep 10" ,
34
34
"test:clean" : " cd infra && docker compose down --remove-orphans" ,
35
35
"docs" : " typedoc --entryPoints src/index.ts --out docs/v2 --entryPoints src/packages/* --excludePrivate --excludeProtected" ,
You can’t perform that action at this time.
0 commit comments