generated from hirosystems/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: jest config for setting up postgres * test: chainhook payload ingestion
- Loading branch information
Showing
12 changed files
with
1,240 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,27 @@ | ||
import { createDefaultPreset, type JestConfigWithTsJest } from 'ts-jest'; | ||
|
||
const transform = { ...createDefaultPreset().transform }; | ||
const jestConfig: JestConfigWithTsJest = { | ||
testEnvironment: 'node', | ||
transform: { | ||
...createDefaultPreset().transform, | ||
}, | ||
testMatch: ['**/tests/unit/**/*.test.ts'], | ||
coverageProvider: 'v8', | ||
collectCoverageFrom: [ | ||
'src/**/*.ts', | ||
'migrations/*.ts', | ||
], | ||
coverageProvider: 'v8', | ||
projects: [ | ||
{ | ||
transform, | ||
displayName: 'unit-tests', | ||
testMatch: ['**/tests/unit/**/*.test.ts'], | ||
}, | ||
{ | ||
transform, | ||
displayName: 'db-tests', | ||
testMatch: ['**/tests/db/**/*.test.ts'], | ||
globalSetup: './tests/db/jest.setup.ts', | ||
globalTeardown: './tests/db/jest.teardown.ts', | ||
}, | ||
] | ||
}; | ||
|
||
export default jestConfig; |
Oops, something went wrong.