mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(tests): use require instead of import
To fix lint tests
This commit is contained in:
@@ -7,10 +7,10 @@ import { FetchRetryConfig } from "Common/Fetch";
|
||||
Enzyme.configure({ adapter: new Adapter() });
|
||||
|
||||
// favico.js needs canvas
|
||||
import("jest-canvas-mock");
|
||||
require("jest-canvas-mock");
|
||||
|
||||
// used to mock current time since we render moment.fromNow() in some places
|
||||
import("jest-date-mock");
|
||||
require("jest-date-mock");
|
||||
|
||||
// fetch is used in multiple places to interact with Go backend
|
||||
// or upstream Alertmanager API
|
||||
|
||||
Reference in New Issue
Block a user