Skip to content

Commit

Permalink
Setup Jest configurations
Browse files Browse the repository at this point in the history
Closes #129
  • Loading branch information
li-boxuan committed Aug 3, 2018
1 parent faf793a commit 59e9cba
Show file tree
Hide file tree
Showing 4 changed files with 8,524 additions and 6,122 deletions.
19 changes: 19 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,

// Indicates whether the coverage information should be collected while executing the test
collectCoverage: true,

// An array of glob patterns indicating a set of files for which coverage information should be collected
collectCoverageFrom: [
"script/*.js",
"src/**",
],

// The directory where Jest should output its coverage files
coverageDirectory: "coverage",

// The test environment that will be used for testing
testEnvironment: "node",
};
Loading

0 comments on commit 59e9cba

Please sign in to comment.