Mockify jquery and axios packages
Moved the block that fails tests on unmocked axios requests from test_setup to its own mock, and added a jQuery mock that fails tests if they use unmocked $.ajax().
Showing
... | @@ -191,6 +191,7 @@ | ... | @@ -191,6 +191,7 @@ |
"pixelmatch": "^4.0.2", | "pixelmatch": "^4.0.2", | ||
"postcss": "^7.0.14", | "postcss": "^7.0.14", | ||
"prettier": "1.18.2", | "prettier": "1.18.2", | ||
"readdir-enhanced": "^2.2.4", | |||
"stylelint": "^9.10.1", | "stylelint": "^9.10.1", | ||
"stylelint-config-recommended": "^2.1.0", | "stylelint-config-recommended": "^2.1.0", | ||
"stylelint-scss": "^3.5.4", | "stylelint-scss": "^3.5.4", | ||
... | ... |
spec/frontend/mocks_spec.js
0 → 100644
Please register or sign in to comment