Skip to content

Commit 2b4b78a

Browse files
committed
(test): add code coverage configuration
- gitignore coverage/ directory - ignore asyncLocalStorage for now - internally we only use getItem and setItem -- the other methods are defined for strictly for type purposes - maybe keep the file in coverage but ignore the unused methods? - (deps): update tsdx to support custom jest configs
1 parent 8ff0244 commit 2b4b78a

File tree

4 files changed

+3926
-2630
lines changed

4 files changed

+3926
-2630
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dist/
44
.rts2_cache_cjs
55
.rts2_cache_esm
66
.rts2_cache_umd
7+
coverage/
78

89
### Node ###
910

jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
coveragePathIgnorePatterns: [
3+
'/node_modules/', // default
4+
'<rootDir>/src/asyncLocalStorage.ts' // ignore for now
5+
]
6+
}

0 commit comments

Comments
 (0)