Skip to content
Snippets Groups Projects
Commit 2a4d368e authored by Sky Brewer's avatar Sky Brewer
Browse files

Allow undef on setupTests.js

parent e3b0ca07
No related branches found
No related tags found
2 merge requests!497CE-2790: Prepare for 4.0.0,!486Resolve CE-2395 "Typescript start"
...@@ -107,6 +107,12 @@ ...@@ -107,6 +107,12 @@
"@typescript-eslint/no-unused-vars": "off", "@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-var-requires": "off" "@typescript-eslint/no-var-requires": "off"
} }
},
{
"files": ["**/setupTests.js"],
"rules": {
"no-undef": "off"
}
} }
] ]
} }
...@@ -6,7 +6,7 @@ import "@testing-library/jest-dom/extend-expect"; ...@@ -6,7 +6,7 @@ import "@testing-library/jest-dom/extend-expect";
import { server } from "./mocks/server"; import { server } from "./mocks/server";
global.console = { global.console = {
log: jest.fn(), // console.log are ignored in tests log: jest.fn(), // no-undef console.log are ignored in tests
// Keep native behaviour for other methods, use those to print out things in your own tests, not `console.log` // Keep native behaviour for other methods, use those to print out things in your own tests, not `console.log`
error: console.error, error: console.error,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment