-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
35 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,30 @@ | ||
const bail = (s) => { | ||
const bail = s => { | ||
throw new Error(s) | ||
} | ||
|
||
module.exports = { | ||
collectCoverage: true, | ||
forceExit: true, | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
testPathIgnorePatterns: ['/node_modules/', '/dist/', '.yalc'], | ||
globals: { | ||
"ts-jest": { | ||
'ts-jest': { | ||
isolatedModules: true, | ||
}, | ||
__DATABASE__: { | ||
host: process.env.POSTGRES_TEST_HOST || bail('POSTGRES_TEST_HOST is not defined'), | ||
port: parseInt(process.env.POSTGRES_TEST_PORT || '5432'), | ||
username: | ||
process.env.POSTGRES_TEST_USERNAME || | ||
bail('POSTGRES_TEST_USERNAME is not defined'), | ||
process.env.POSTGRES_TEST_USERNAME || | ||
bail('POSTGRES_TEST_USERNAME is not defined'), | ||
password: | ||
process.env.POSTGRES_TEST_PASSWORD || | ||
bail('POSTGRES_TEST_PASSWORD is not defined'), | ||
process.env.POSTGRES_TEST_PASSWORD || | ||
bail('POSTGRES_TEST_PASSWORD is not defined'), | ||
database: | ||
process.env.POSTGRES_TEST_DATABASE || | ||
bail('POSTGRES_TEST_DATABASE is not defined'), | ||
process.env.POSTGRES_TEST_DATABASE || | ||
bail('POSTGRES_TEST_DATABASE is not defined'), | ||
}, | ||
__LOG_LEVEL__: process.env.LOG_LEVEL || 'info' | ||
__LOG_LEVEL__: process.env.LOG_LEVEL || 'info', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters