Merge branch 'origin/master' into Weblate.
[phpmyadmin.git] / jest.config.js
blob380f710310bf4402b7024908bdddc7f728b1a714
1 /* eslint-env node */
3 module.exports = {
4     coverageDirectory: '<rootDir>/build/javascript/',
5     collectCoverageFrom: ['<rootDir>/js/src/**/*.js'],
6     projects: [
7         {
8             verbose: true,
9             setupFiles: ['<rootDir>/test/jest/test-env.js'],
10             coveragePathIgnorePatterns: [
11                 '<rootDir>/node_modules/',
12                 '<rootDir>/js/vendor/',
13             ],
14             displayName: 'phpMyAdmin',
15             testMatch: ['<rootDir>/test/javascript/**/*.js'],
16             transform: {
17                 '^.+\\.js$': '<rootDir>/test/jest/file-transformer.js'
18             },
19             moduleNameMapper: {
20                 '^phpmyadmin/(.*)$': '<rootDir>/js/src/$1',
21                 '^@vendor/(.*)$': '<rootDir>/js/vendor/$1',
22             },
23         }
24     ]