forked from expo/expo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (22 loc) · 936 Bytes
/
jest.config.js
File metadata and controls
24 lines (22 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import nextJest from 'next/jest.js';
/** @type {import('jest').Config} */
const jestConfig = {
displayName: 'docs',
testEnvironment: 'jsdom',
testMatch: ['**/*.test.(js|ts|tsx)'],
setupFilesAfterEnv: ['@testing-library/jest-dom/jest-globals'],
clearMocks: true,
moduleNameMapper: {
'^~/(.*)$': '<rootDir>/$1',
// note(simek): force Jest to use non ESM bundle
'^@radix-ui/react-dropdown-menu$':
'<rootDir>/node_modules/@radix-ui/react-dropdown-menu/dist/index.js',
'^@radix-ui/react-select$': '<rootDir>/node_modules/@radix-ui/react-select/dist/index.js',
'^framer-motion$': '<rootDir>/node_modules/framer-motion/dist/cjs/index.js',
'^@fingerprintjs/fingerprintjs-pro-react$':
'<rootDir>/node_modules/@fingerprintjs/fingerprintjs-pro-react/dist/fp-pro-react.cjs.js',
},
transform: {},
extensionsToTreatAsEsm: ['.ts', '.tsx'],
};
export default nextJest({ dir: './' })(jestConfig);