mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
23 lines
918 B
JavaScript
23 lines
918 B
JavaScript
process.env.TZ = 'UTC';
|
|
|
|
module.exports = {
|
|
verbose: false,
|
|
transform: {
|
|
'^.+\\.(ts|tsx|js|jsx)$': 'ts-jest',
|
|
},
|
|
moduleDirectories: ['node_modules', 'public'],
|
|
roots: ['<rootDir>/public/app', '<rootDir>/public/test', '<rootDir>/packages', '<rootDir>/scripts'],
|
|
testRegex: '(\\.|/)(test)\\.(jsx?|tsx?)$',
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
|
|
setupFiles: ['jest-canvas-mock', './public/test/jest-shim.ts', './public/test/jest-setup.ts'],
|
|
setupFilesAfterEnv: ['./public/test/setupTests.ts'],
|
|
snapshotSerializers: ['enzyme-to-json/serializer'],
|
|
globals: { 'ts-jest': { isolatedModules: true } },
|
|
moduleNameMapper: {
|
|
'\\.svg': '<rootDir>/public/test/mocks/svg.ts',
|
|
'\\.css': '<rootDir>/public/test/mocks/style.ts',
|
|
'monaco-editor/esm/vs/editor/editor.api': '<rootDir>/public/test/mocks/monaco.ts',
|
|
},
|
|
watchPathIgnorePatterns: ['<rootDir>/node_modules/'],
|
|
};
|