Toolkit: add canvas-mock to test setup (#21739)

pull/21774/head
Ryan McKinley 5 years ago committed by GitHub
parent 751eb2c8bb
commit ed140346a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/grafana-toolkit/package.json
  2. 2
      packages/grafana-toolkit/src/config/jest.plugin.config.ts

@ -62,6 +62,7 @@
"html-webpack-plugin": "^3.2.0",
"inquirer": "^6.3.1",
"jest": "24.8.0",
"jest-canvas-mock": "2.1.2",
"jest-cli": "^24.8.0",
"jest-coverage-badges": "^1.1.2",
"jest-junit": "^6.4.0",

@ -50,7 +50,7 @@ export const jestConfig = (baseDir: string = process.cwd()) => {
const setupFile = getSetupFile(setupFilePath);
const shimsFile = getSetupFile(shimsFilePath);
const setupFiles = [setupFile, shimsFile].filter(f => f);
const setupFiles = [setupFile, shimsFile, 'jest-canvas-mock'].filter(f => f);
const defaultJestConfig = {
preset: 'ts-jest',
verbose: false,

Loading…
Cancel
Save