-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
77f8c1e
commit fae24b3
Showing
5 changed files
with
46 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Config } from 'jest'; | ||
import { coverage } from './layers/coverage'; | ||
|
||
const config: Config = { | ||
...coverage, | ||
}; | ||
|
||
export default config; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Config } from 'jest'; | ||
|
||
export const coverage: Config = { | ||
collectCoverage: true, | ||
coverageDirectory: './coverage', | ||
coveragePathIgnorePatterns: [ | ||
'node_modules/', | ||
'migrations/', | ||
'mikro-orm\\.config\\.ts$', | ||
'interfaces/', | ||
'types/', | ||
], | ||
}; |
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,7 +1,9 @@ | ||
import type { JestConfigWithTsJest } from 'ts-jest'; | ||
import { coverage } from './layers/coverage'; | ||
|
||
const config: JestConfigWithTsJest = { | ||
preset: 'ts-jest/presets/default', | ||
...coverage, | ||
}; | ||
|
||
export default config; |
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,8 +1,10 @@ | ||
import type { JestConfigWithTsJest } from 'ts-jest'; | ||
import { coverage } from './layers/coverage'; | ||
|
||
export const config: JestConfigWithTsJest = { | ||
preset: 'ts-jest/presets/default-esm', | ||
moduleNameMapper: { | ||
'^(\\.{1,2}/.*)\\.js$': '$1', | ||
}, | ||
...coverage, | ||
}; |