File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/libs/core/tests/images Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ import sharp from "sharp";
2
2
import { ImagesManifest , PlatformClient } from &q
BB13
uot;../../src" ;
3
3
import { imageOptimizer } from "../../src/images/imageOptimizer" ;
4
4
import imagesManifest from "./image-images-manifest.json" ;
5
+ import fs from "fs" ;
5
6
import url from "url" ;
6
7
import http from "http" ;
7
8
import Stream from "stream" ;
8
9
import { jest } from "@jest/globals" ;
9
- import fse from "fs-extra" ;
10
10
11
11
jest . mock ( "node-fetch" , ( ) => require ( "fetch-mock-jest" ) . sandbox ( ) ) ;
12
12
@@ -128,8 +128,8 @@ describe("Image optimizer", () => {
128
128
} ;
129
129
130
130
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 } ) ;
133
133
} ) ;
134
134
135
135
describe ( "Routes" , ( ) => {
You can’t perform that action at this time.
0 commit comments