File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 15
15
strategy :
16
16
matrix :
17
17
os : [ubuntu-latest]
18
- node : ['18', '20' ]
18
+ node : ["18", "20" ]
19
19
20
20
runs-on : ${{ matrix.os }}
21
21
35
35
- name : Run tests
36
36
run : |
37
37
npm t
38
+
39
+ - name : Upload coverage results to Coveralls
40
+ uses : coverallsapp/github-action@master
41
+ with :
42
+ github-token : ${{ secrets.GITHUB_TOKEN }}
43
+ path-to-lcov : ./test/coverage/lcov.info
Original file line number Diff line number Diff line change 30
30
"build:module" : " tsc -p tsconfig.module.json" ,
31
31
"lint" : " eslint ./src/**/* test/**/*.test.ts" ,
32
32
"test" : " run-s test:clean test:infra test:suite test:clean" ,
33
- "test:suite" : " jest --runInBand" ,
33
+ "test:suite" : " jest --runInBand --coverage " ,
34
34
"test:infra" : " cd infra && docker compose down && docker compose pull && docker compose up -d && sleep 30" ,
35
35
"test:clean" : " cd infra && docker compose down" ,
36
36
"docs" : " typedoc src/index.ts --out docs/v2 --excludePrivate --excludeProtected" ,
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ export function uuid() {
14
14
} )
15
15
}
16
16
17
- export const isBrowser = ( ) =>
18
- typeof window !== 'undefined' && typeof document !== 'undefined'
17
+ export const isBrowser = ( ) => typeof window !== 'undefined' && typeof document !== 'undefined'
19
18
20
19
const localStorageWriteTests = {
21
20
tested : false ,
You can’t perform that action at this time.
0 commit comments