Commit ed140346 by Ryan McKinley Committed by GitHub

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

parent 751eb2c8
...@@ -62,6 +62,7 @@ ...@@ -62,6 +62,7 @@
"html-webpack-plugin": "^3.2.0", "html-webpack-plugin": "^3.2.0",
"inquirer": "^6.3.1", "inquirer": "^6.3.1",
"jest": "24.8.0", "jest": "24.8.0",
"jest-canvas-mock": "2.1.2",
"jest-cli": "^24.8.0", "jest-cli": "^24.8.0",
"jest-coverage-badges": "^1.1.2", "jest-coverage-badges": "^1.1.2",
"jest-junit": "^6.4.0", "jest-junit": "^6.4.0",
......
...@@ -50,7 +50,7 @@ export const jestConfig = (baseDir: string = process.cwd()) => { ...@@ -50,7 +50,7 @@ export const jestConfig = (baseDir: string = process.cwd()) => {
const setupFile = getSetupFile(setupFilePath); const setupFile = getSetupFile(setupFilePath);
const shimsFile = getSetupFile(shimsFilePath); const shimsFile = getSetupFile(shimsFilePath);
const setupFiles = [setupFile, shimsFile].filter(f => f); const setupFiles = [setupFile, shimsFile, 'jest-canvas-mock'].filter(f => f);
const defaultJestConfig = { const defaultJestConfig = {
preset: 'ts-jest', preset: 'ts-jest',
verbose: false, verbose: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment