| | |
| | | clearMocks: true, |
| | | |
| | | // Indicates whether the coverage information should be collected while executing the test |
| | | collectCoverage: true, |
| | | collectCoverage: false, |
| | | |
| | | // An array of glob patterns indicating a set of files for which coverage information should be collected |
| | | // collectCoverageFrom: undefined, |
| | |
| | | coverageProvider: 'v8', |
| | | |
| | | // A list of reporter names that Jest uses when writing coverage reports |
| | | coverageReporters: [ |
| | | 'json', |
| | | 'text', |
| | | 'text-summary', |
| | | 'lcov', |
| | | 'clover', |
| | | ], |
| | | // coverageReporters: [ |
| | | // "json", |
| | | // "text", |
| | | // "lcov", |
| | | // "clover" |
| | | // ], |
| | | |
| | | // An object that configures minimum threshold enforcement for coverage results |
| | | // coverageThreshold: undefined, |
| | |
| | | |
| | | // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module |
| | | moduleNameMapper: { |
| | | '^@/(.*)$': '<rootDir>/$1', |
| | | '^@/components/(.*)$': '<rootDir>/components/$1', |
| | | '^lodash-es$': 'lodash', |
| | | }, |
| | | |
| | |
| | | // restoreMocks: false, |
| | | |
| | | // The root directory that Jest should scan for tests and modules within |
| | | rootDir: './', |
| | | // rootDir: undefined, |
| | | |
| | | // A list of paths to directories that Jest should use to search for files in |
| | | // roots: [ |
| | |
| | | // setupFiles: [], |
| | | |
| | | // A list of paths to modules that run some code to configure or set up the testing framework before each test |
| | | setupFilesAfterEnv: ['<rootDir>/jest.setup.ts'], |
| | | // setupFilesAfterEnv: [], |
| | | |
| | | // The number of seconds after which a test is considered as slow and reported as such in the results. |
| | | // slowTestThreshold: 5, |
| | |
| | | // snapshotSerializers: [], |
| | | |
| | | // The test environment that will be used for testing |
| | | testEnvironment: '@happy-dom/jest-environment', |
| | | testEnvironment: 'jsdom', |
| | | |
| | | // Options that will be passed to the testEnvironment |
| | | // testEnvironmentOptions: {}, |