Skip to content

Commit 24cf4fb

Browse files
committed
feat(deps): upgrade minor deps
1 parent e79ba1f commit 24cf4fb

File tree

5 files changed

+5694
-4209
lines changed

5 files changed

+5694
-4209
lines changed

__tests__/utils.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import { fixture } from "./helpers";
1111

1212
import loadModule from "../src/utils/load-module";
1313

14+
const genericFailure = () => {
15+
throw new Error("fail");
16+
};
17+
1418
test("noop", async () => {
1519
const { css } = await postcss(postcssNoop).process(".foo{color:red}", { from: "simple.css" });
1620
expect(css).toBe(".foo{color:red}");
@@ -58,8 +62,8 @@ describe("load-sass", () => {
5862
});
5963

6064
test("not found", async () => {
61-
jest.unstable_mockModule("sass", () => jest.fn());
62-
jest.unstable_mockModule("node-sass", () => jest.fn());
65+
jest.unstable_mockModule("sass", genericFailure);
66+
jest.unstable_mockModule("node-sass", genericFailure);
6367
return expect(async () => loadSass()).rejects.toThrowErrorMatchingSnapshot();
6468
});
6569
});

0 commit comments

Comments
 (0)