Skip to content

Commit cc3b6e7

Browse files
committed
(#336) Chasing down another async error in tests due to jimp
1 parent 1319a7f commit cc3b6e7

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

lib/match-request.class.spec.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import {Image} from "./image.class";
22
import {MatchRequest} from "./match-request.class";
33

4+
jest.mock('jimp', () => {});
5+
46
describe("MatchRequest", () => {
57
it("should default to multi-scale matching", () => {
68
const SUT = new MatchRequest(

lib/provider/native/libnut-screen.class.spec.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import libnut = require("@nut-tree/libnut");
22
import { Region } from "../../region.class";
33
import ScreenAction from "./libnut-screen.class";
44

5+
jest.mock("jimp", () => {});
56
jest.mock("@nut-tree/libnut");
67

78
beforeEach(() => {

0 commit comments

Comments
 (0)