Skip to content

Commit

Permalink
Merge pull request #997 from chardos/run-unit-tests
Browse files Browse the repository at this point in the history
NPM script for running only unit tests
  • Loading branch information
dherault committed May 30, 2020
2 parents 540f03d + ec76237 commit 6e0b5d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions jest.config.units.js
@@ -0,0 +1,7 @@
'use strict'

module.exports = {
// Ignore 'tests' directory as it contains all the integration tests
modulePathIgnorePatterns: ['src/lambda/__tests__/fixtures/', 'tests/'],
setupFiles: ['object.fromentries/auto.js'],
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -13,6 +13,7 @@
"prepare": "npm run build",
"prepublishOnly": "npm run lint && npm run build",
"test": "npm run build && jest --verbose --silent --runInBand",
"test:unit": "jest --verbose --silent --runInBand --config jest.config.units.js",
"test:cov": "npm run build && jest --coverage --silent --runInBand --collectCoverageFrom=src/**/*.js",
"test:log": "npm run build && jest --verbose",
"test:noBuild": "jest --verbose --runInBand --bail"
Expand Down

0 comments on commit 6e0b5d3

Please sign in to comment.