diff options
Diffstat (limited to 'jest.config.cjs')
-rw-r--r-- | jest.config.cjs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/jest.config.cjs b/jest.config.cjs new file mode 100644 index 0000000000..f0289758dd --- /dev/null +++ b/jest.config.cjs @@ -0,0 +1,23 @@ +/* eslint-env node */ + +module.exports = { + coverageDirectory: '<rootDir>/build/javascript/', + collectCoverageFrom: ['<rootDir>/js/src/**/*.js'], + projects: [ + { + verbose: true, + coveragePathIgnorePatterns: [ + '<rootDir>/node_modules/', + '<rootDir>/js/vendor/', + ], + displayName: 'phpMyAdmin', + testMatch: ['<rootDir>/test/javascript/**/*.js'], + transform: {}, + moduleNameMapper: { + '^phpmyadmin/(.*)$': '<rootDir>/js/src/$1', + '^@vendor/(.*)$': '<rootDir>/js/vendor/$1', + }, + testEnvironment: 'jsdom', + } + ] +}; |