Skip to content

Commit a3b2f1e

Browse files
Update tempy dev dependency (#63)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
1 parent 576b442 commit a3b2f1e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"devDependencies": {
5050
"ava": "^3.15.0",
5151
"is-path-inside": "^4.0.0",
52-
"tempy": "^2.0.0",
52+
"tempy": "^3.0.0",
5353
"tsd": "^0.17.0",
5454
"xo": "^0.44.0"
5555
}

test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import path from 'node:path';
55
import {fileURLToPath, pathToFileURL} from 'node:url';
66
import test from 'ava';
77
import isPathInside from 'is-path-inside';
8-
import tempy from 'tempy';
8+
import {temporaryDirectory} from 'tempy';
99
import {findUp, findUpSync, findUpMultiple, findUpMultipleSync, findUpStop, pathExists, pathExistsSync} from './index.js';
1010

1111
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -55,8 +55,7 @@ const url = {
5555

5656
// Create a disjoint directory, used for the not-found tests
5757
test.beforeEach(t => {
58-
const temporaryDirectory = tempy.directory();
59-
t.context.disjoint = temporaryDirectory;
58+
t.context.disjoint = temporaryDirectory();
6059
});
6160

6261
test.afterEach(t => {

0 commit comments

Comments
 (0)