add jest-canvas-mock to silence a bunch of warnings
without this we get a bunch of warnings from our jest tests like: Error: Not implemented: HTMLCanvasElement.prototype.getContext … test plan: you shouldn’t see those ^ messages in the jest logs Change-Id: Ib257d4a6b40f4b4118f273729080e722afa3432a Reviewed-on: https://gerrit.instructure.com/163515 Tested-by: Jenkins Reviewed-by: Clay Diffrient <cdiffrient@instructure.com> Product-Review: Ryan Shaw <ryan@instructure.com> QA-Review: Ryan Shaw <ryan@instructure.com>
This commit is contained in:
parent
74ff8eb38b
commit
e1454a761c
|
@ -13,6 +13,7 @@ module.exports = {
|
|||
reporters: [ "default", "jest-junit" ],
|
||||
setupFiles: [
|
||||
'jest-localstorage-mock',
|
||||
'jest-canvas-mock',
|
||||
'<rootDir>/jest/jest-setup.js'
|
||||
],
|
||||
testMatch: [
|
||||
|
|
|
@ -160,6 +160,7 @@
|
|||
"istanbul-instrumenter-loader": "^3",
|
||||
"istanbul-merge": "^1.1.1",
|
||||
"jest": "^23",
|
||||
"jest-canvas-mock": "^1",
|
||||
"jest-junit": "^5",
|
||||
"jest-localstorage-mock": "^2",
|
||||
"json-loader": "^0.5.7",
|
||||
|
@ -239,10 +240,8 @@
|
|||
"jquery": "https://github.com/ryankshaw/jquery.git#a755a3e9c99d5a70d8ea570836f94ae1ba56046d",
|
||||
"canvas-rce/**/babel-helper-evaluate-path": "0.4.1",
|
||||
"canvas-quizzes/grunt-contrib-jasmine/jasmine-core": "2.6.4",
|
||||
"graphael": "this is just here so yarn.lock looks the same whether the analytics plugin is checked out or not",
|
||||
"graphael": "https://github.com/ryankshaw/graphael.git",
|
||||
"karma": "2.0.2",
|
||||
"node-sass": "if we let node-sass upgrade to recent versions, it causes: SIS-3125",
|
||||
"node-sass": "4.7.2"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ module.exports = {
|
|||
'enzyme-to-json/serializer'
|
||||
],
|
||||
setupFiles: [
|
||||
'jest-canvas-mock',
|
||||
'./jest-env.js'
|
||||
],
|
||||
testPathIgnorePatterns: [
|
||||
|
|
|
@ -103,6 +103,7 @@
|
|||
"identity-obj-proxy": "^3.0.0",
|
||||
"lint-staged": "^7",
|
||||
"jest": "^23",
|
||||
"jest-canvas-mock": "^1",
|
||||
"mockdate": "^2.0.2",
|
||||
"moxios": "^0.4.0",
|
||||
"npm-run-all": "^4",
|
||||
|
|
|
@ -8734,6 +8734,10 @@ jasmine_xhr@1.0.2:
|
|||
dependencies:
|
||||
sinon "^1.10.3"
|
||||
|
||||
jest-canvas-mock@^1:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-canvas-mock/-/jest-canvas-mock-1.1.0.tgz#f6ed0998b6be3ae2b7e095d7173441ae62cc831e"
|
||||
|
||||
jest-changed-files@^23.2.0:
|
||||
version "23.2.0"
|
||||
resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-23.2.0.tgz#a145a6e4b66d0129fc7c99cee134dc937a643d9c"
|
||||
|
|
Loading…
Reference in New Issue