thunderhub/jest.config.js
Anthony Potdevin a78b6e96d5
test: 🚨 more server unit tests (#70)
* chore: 🔧 add tests

* fix: 🐛 network info resolver

* feat:  init tests

* chore: 🔧 improve test

* chore: 🔧 more tests

* chore: 🔧 bitcoin resolvers

* chore: 🔧 more tests
2020-06-13 11:46:20 +02:00

21 lines
552 B
JavaScript

module.exports = {
collectCoverageFrom: [
'**/*.{js,jsx,ts,tsx}',
'!**/*.d.ts',
'!**/node_modules/**',
],
setupFilesAfterEnv: ['<rootDir>/setupTests.js'],
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/'],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': '<rootDir>/node_modules/babel-jest',
},
transformIgnorePatterns: [
'/node_modules/',
'^.+\\.module\\.(css|sass|scss)$',
],
moduleNameMapper: {
'^.+\\.module\\.(css|sass|scss)$': 'identity-obj-proxy',
},
modulePaths: ['<rootDir>/'],
};