Skip to content

Commit

Permalink
Merge pull request #26 from javierbrea/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
javierbrea authored Dec 21, 2020
2 parents aa6f786 + 39ffb54 commit e94485d
Show file tree
Hide file tree
Showing 6 changed files with 6,447 additions and 1,994 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- chore(deps): Support all Node.js releases that have not passed their end date
- chore(deps): Update devDependencies
- style(lint): Adapt code to new prettier version
- test(unit): Use Jest for unit tests
- chore(Sonar): Update Sonar config

### Fixed
- fix: Define imports on Windows using also / as path separator (#22)
Expand Down
32 changes: 32 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html

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: ["src/*.js"],

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

// An object that configures minimum threshold enforcement for coverage results
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},

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

// The glob patterns Jest uses to detect test files
testMatch: ["<rootDir>/test/unit/**/*.spec.js"],
};
Loading

0 comments on commit e94485d

Please sign in to comment.