1
0
mirror of https://github.com/oceanprotocol/status synced 2024-11-22 09:47:02 +01:00
status/jest.config.js

24 lines
709 B
JavaScript
Raw Permalink Normal View History

2019-12-07 23:02:18 +01:00
module.exports = {
2019-12-08 16:28:26 +01:00
preset: 'ts-jest/presets/js-with-ts',
2019-12-07 23:02:18 +01:00
setupFilesAfterEnv: ['<rootDir>/jest/setup.ts'],
globals: {
'ts-jest': {
tsConfig: 'jest.tsconfig.json'
}
},
moduleNameMapper: {
'.+\\.(css|styl|less|sass|scss)$': '<rootDir>/jest/__mocks__/styleMock.js',
'.+\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/jest/__mocks__/fileMock.js',
'\\.svg': '<rootDir>/jest/__mocks__/svgrMock.js'
},
2019-12-08 16:28:26 +01:00
testPathIgnorePatterns: [
'<rootDir>/.next',
'<rootDir>/node_modules',
'<rootDir>/build',
'<rootDir>/coverage'
],
2019-12-07 23:02:18 +01:00
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/@types/**/*'],
collectCoverage: true
}