Merge branch 'origin/master' into Weblate.
[phpmyadmin.git] / jest.config.cjs
blob317e5f3928b88946808548db4d4e5b36e96c5058
1 /* eslint-env node */
3 module.exports = {
4     extensionsToTreatAsEsm: ['.ts'],
5     coverageDirectory: '<rootDir>/build/javascript/',
6     collectCoverageFrom: ['<rootDir>/resources/js/src/**/*.ts'],
7     projects: [
8         {
9             coveragePathIgnorePatterns: [
10                 '<rootDir>/node_modules/',
11                 '<rootDir>/public/js/vendor/',
12             ],
13             displayName: 'phpMyAdmin',
14             testMatch: ['<rootDir>/tests/javascript/**/*.ts'],
15             transform: { '\\.[jt]sx?$': 'babel-jest' },
16             moduleNameMapper: {
17                 '^phpmyadmin/(.*)$': '<rootDir>/resources/js/src/$1',
18                 '^@vendor/(.*)$': '<rootDir>/public/js/vendor/$1',
19             },
20             testEnvironment: 'jsdom',
21         }
22     ]