Skip to content

Commit

Permalink
Update tempy to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilsson committed May 13, 2022
1 parent 2337dfe commit 4c966be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
6 changes: 3 additions & 3 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 4c966be

Please sign in to comment.