forked from webex/widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
22 lines (21 loc) · 732 Bytes
/
Copy pathjest.config.js
File metadata and controls
22 lines (21 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const path = require('path');
module.exports = {
rootDir: '.',
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
moduleNameMapper: {
'^.+\\.(css|less|scss)$': 'babel-jest',
'^.+\\.svg$': '<rootDir>/jest.file-mock.js',
'^adaptivecards$': '<rootDir>/node_modules/adaptivecards/dist/adaptivecards.js',
},
testEnvironment: 'jsdom',
testMatch: ['**/tooling/tests/**/*.js'],
transformIgnorePatterns: [
'/node_modules/(?!(@momentum-design/|@momentum-ui/react-collaboration|@lit|lit|cheerio|react-error-boundary))',
],
// Use babel-jest or ts-jest depending on your setup
transform: {
'\\.[jt]sx?$': 'babel-jest',
'\\.[jt]s?$': 'babel-jest',
},
moduleDirectories: ['node_modules', 'src'],
};