-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e37f24
commit 44c0a2e
Showing
2 changed files
with
16 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
// 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 scaffolding | ||
// Jest configuration provided by @grafana/create-plugin | ||
...require('./.config/jest.config'), | ||
// Inform Jest to only transform specific node_module packages. | ||
transformIgnorePatterns: [nodeModulesToTransform([...grafanaESModules, 'monaco-promql'])], | ||
}; |