Skip to content

Commit

Permalink
(test): add code coverage configuration
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
agilgur5 committed Nov 19, 2019
1 parent 8ff0244 commit 2b4b78a
Show file tree
Hide file tree
Showing 4 changed files with 3,926 additions and 2,630 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dist/
.rts2_cache_cjs
.rts2_cache_esm
.rts2_cache_umd
coverage/

### Node ###

Expand Down
6 changes: 6 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
coveragePathIgnorePatterns: [
'/node_modules/', // default
'<rootDir>/src/asyncLocalStorage.ts' // ignore for now
]
}
Loading

0 comments on commit 2b4b78a

Please sign in to comment.