mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
chore(core,ui): set jest config coverage report to all files (#4090)
set jest config coverage report to all files
This commit is contained in:
parent
53131ad5a7
commit
476de8d2ff
2 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
/** @type {import('jest').Config} */
|
||||
const config = {
|
||||
transform: {},
|
||||
collectCoverageFrom: ['**/*.{js,ts}'],
|
||||
coveragePathIgnorePatterns: ['/node_modules/', '/src/__mocks__/'],
|
||||
coverageReporters: ['text-summary', 'lcov'],
|
||||
coverageProvider: 'v8',
|
||||
|
|
|
@ -4,6 +4,9 @@ const config: Config.InitialOptions = {
|
|||
roots: ['<rootDir>/src'],
|
||||
testEnvironment: 'jsdom',
|
||||
setupFilesAfterEnv: ['<rootDir>/src/jest.setup.ts'],
|
||||
collectCoverageFrom: ['**/*.{js,jsx,ts,tsx}'],
|
||||
coveragePathIgnorePatterns: ['/node_modules/', '/src/__mocks__/', '/src/include.d/'],
|
||||
coverageReporters: ['text-summary', 'lcov'],
|
||||
transform: {
|
||||
'^.+\\.(t|j)sx?$': [
|
||||
'@swc/jest',
|
||||
|
|
Loading…
Reference in a new issue