Skip to content

Commit

Permalink
chore: add setup file for Jest to set environment variable before eve…
Browse files Browse the repository at this point in the history
…ry test
  • Loading branch information
Fredrik Makila committed Sep 13, 2020
1 parent 590d576 commit 7211cb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .jest/setEnvVars.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
process.env.SILENT = 'true'
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/dist/'],
collectCoverage: true
collectCoverage: true,
setupFiles: ['<rootDir>/.jest/setEnvVars.js']
};

0 comments on commit 7211cb3

Please sign in to comment.