xref: /expo/docs/jest.config.js (revision 3f609562)
1import nextJest from 'next/jest.js';
2
3/** @type {import('jest').Config} */
4const jestConfig = {
5  displayName: 'docs',
6  testEnvironment: 'jsdom',
7  testMatch: ['**/*.test.(js|ts|tsx)'],
8  setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
9  clearMocks: true,
10  moduleNameMapper: {
11    '^~/(.*)$': '<rootDir>/$1',
12  },
13  transform: {},
14  extensionsToTreatAsEsm: ['.ts', '.tsx'],
15};
16
17export default nextJest({ dir: './' })(jestConfig);
18