Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Commit af85b5f

Browse files
committed
test(core): fix imageOptimizer.test.ts
1 parent ba6b107 commit af85b5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎packages/libs/core/tests/images/imageOptimizer.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import sharp from "sharp";
22
import { ImagesManifest, PlatformClient } from "../../src";
33
import { imageOptimizer } from "../../src/images/imageOptimizer";
44
import imagesManifest from "./image-images-manifest.json";
5+
import fs from "fs";
56
import url from "url";
67
import http from "http";
78
import Stream from "stream";
89
import { jest } from "@jest/globals";
9-
import fse from "fs-extra";
1010

1111
jest.mock("node-fetch", () => require("fetch-mock-jest").sandbox());
1212

@@ -128,8 +128,8 @@ describe("Image optimizer", () => {
128128
};
129129

130130
beforeEach(() => {
131-
fse.remove("/tmp/cache/images");
132-
fse.remove("/tmp/cache/imageMeta");
131+
fs.rmdirSync("/tmp/cache/images",{recursive: true});
132+
fs.rmdirSync("/tmp/cache/imageMeta",{recursive: true});
133133
});
134134

135135
describe("Routes", () => {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /