mirror of https://github.com/grafana/grafana
Chore: Enable `jest-fail-on-console` to prevent console errors in unit tests (#46835)
* Add jest-fail-on-console * Fix last 2 console warnings * Update package syntaxpull/46845/head
parent
ba62f5ad5d
commit
04bbafb4a6
@ -1,4 +1,8 @@ |
||||
import '@testing-library/jest-dom'; |
||||
import failOnConsole from 'jest-fail-on-console'; |
||||
import { matchers } from './matchers'; |
||||
|
||||
failOnConsole({ |
||||
shouldFailOnLog: true, |
||||
}); |
||||
expect.extend(matchers); |
||||
|
Loading…
Reference in new issue