mirror of https://github.com/grafana/grafana.git
30 lines
761 B
JavaScript
30 lines
761 B
JavaScript
|
process.env.TZ = 'Pacific/Easter'; // UTC-06:00 or UTC-05:00 depending on daylight savings
|
||
|
|
||
|
export default {
|
||
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
||
|
setupFilesAfterEnv: ['<rootDir>/jest-setup.js'],
|
||
|
testMatch: ['<rootDir>/**/__tests__/**/*.{js,jsx,ts,tsx}', '<rootDir>/**/*.{spec,test,jest}.{js,jsx,ts,tsx}'],
|
||
|
testEnvironment: 'node',
|
||
|
transform: {
|
||
|
'^.+\\.(t|j)sx?$': [
|
||
|
'@swc/jest',
|
||
|
{
|
||
|
sourceMaps: 'inline',
|
||
|
jsc: {
|
||
|
parser: {
|
||
|
syntax: 'typescript',
|
||
|
tsx: true,
|
||
|
decorators: false,
|
||
|
dynamicImport: true,
|
||
|
},
|
||
|
transform: {
|
||
|
react: {
|
||
|
runtime: 'automatic',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
};
|