diff --git a/package.json b/package.json index 5b72a49..bfce654 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "jest": "^27.1.0", "prettier": "^2.3.0", "simple-git-hooks": "^2.4.1", - "tempy": "^2.0.0", + "tempy": "^3.0.0", "ts-jest": "^27.0.5", "typescript": "^4.5.2" }, diff --git a/test/index.ts b/test/index.ts index 0292f89..2240cc0 100644 --- a/test/index.ts +++ b/test/index.ts @@ -2,7 +2,7 @@ import { jest } from '@jest/globals'; import { build, type BuildOptions, type BuildResult } from 'esbuild'; import fs from 'fs'; import path from 'path'; -import tempy from 'tempy'; +import { temporaryDirectory } from 'tempy'; import { cleanPlugin, type PluginOptions } from '../src'; const filesExists = (filePath: string, fileNames: string[]): boolean => { @@ -39,8 +39,8 @@ describe('esbuild-clean-plugin', () => { beforeEach(() => { jest.resetAllMocks(); - entryDir = tempy.directory(); - outDir = tempy.directory(); + entryDir = temporaryDirectory(); + outDir = temporaryDirectory(); writeFile(entryDir, 'a.js');