Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM script for running only unit tests #997

Merged
merged 1 commit into from May 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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