0
Fork 0
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:
simeng-li 2023-06-29 13:59:23 +08:00 committed by GitHub
parent 53131ad5a7
commit 476de8d2ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -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',

View file

@ -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',