-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
19 lines (18 loc) · 722 Bytes
/
Copy pathjest.config.js
File metadata and controls
19 lines (18 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const path = require('path')
const { defaults } = require('jest-config')
module.exports = {
roots: [path.join(__dirname, './src')],
rootDir: path.join(__dirname, '.'),
testEnvironment: 'node',
testMatch: ['**/__tests__/**'],
moduleDirectories: ['node_modules', __dirname, path.join(__dirname, './src')],
coverageDirectory: path.join(__dirname, './coverage/'),
collectCoverageFrom: ['**/src/**/*.js'],
coveragePathIgnorePatterns: ['.*/__tests__/.*'],
moduleFileExtensions: [...defaults.moduleFileExtensions, 'graphql'],
watchPlugins: [
require.resolve('jest-watch-select-projects'),
require.resolve('jest-watch-typeahead/filename'),
require.resolve('jest-watch-typeahead/testname'),
],
}