-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.cts
More file actions
28 lines (28 loc) · 1.05 KB
/
jest.config.cts
File metadata and controls
28 lines (28 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = {
displayName: 'brightchat-react-components',
preset: '../jest.preset.js',
setupFiles: ['<rootDir>/src/test-setup.ts'],
transform: {
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/react/babel'] }],
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
testMatch: [
'<rootDir>/src/**/*.spec.{ts,tsx,js,jsx}',
'<rootDir>/src/**/*.test.{ts,tsx,js,jsx}',
'<rootDir>/src/**/*.property.{ts,tsx,js,jsx}',
],
coverageDirectory: '../coverage/brightchat-react-components',
moduleNameMapper: {
'^@brightchain/brightchain-react/services/(.*)$':
'<rootDir>/../brightchain-react/src/services/$1',
'^@brightchain/brightchain-lib$':
'<rootDir>/../brightchain-lib/src/index.ts',
'^@brightchain/brightchain-lib/(.*)$':
'<rootDir>/../brightchain-lib/src/$1',
'^@brightchain/brightchat-lib$':
'<rootDir>/../brightchat-lib/src/index.ts',
'^@brightchain/brightchat-lib/(.*)$':
'<rootDir>/../brightchat-lib/src/$1',
},
};