-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathjest.config.js
More file actions
23 lines (22 loc) · 795 Bytes
/
jest.config.js
File metadata and controls
23 lines (22 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// force timezone to UTC to allow tests to work regardless of local timezone
// generally used by snapshots, but can affect specific tests
process.env.TZ = 'UTC';
const { grafanaESModules, nodeModulesToTransform } = require('./.config/jest/utils');
module.exports = {
// Jest configuration provided by @grafana/create-plugin
...require('./.config/jest.config'),
// Prevent Jest from picking up Playwright e2e test files
testPathIgnorePatterns: ['/node_modules/', '<rootDir>/e2e/'],
// Inform Jest to only transform specific node_module packages.
transformIgnorePatterns: [
nodeModulesToTransform([
...grafanaESModules,
'marked',
'react-calendar',
'get-user-locale',
'memoize',
'mimic-function',
'@wojtekmaj/date-utils',
]),
],
};