Skip to content

Commit 267b1e1

Browse files
committed
test(tempy): upgraded to the latest version
1 parent 998f29a commit 267b1e1

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

package-lock.json

Lines changed: 16 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"escape-string-regexp": "5.0.0",
3535
"fs-extra": "10.0.0",
3636
"semantic-release": "20.1.0",
37-
"tempy": "^2.0.0",
37+
"tempy": "^3.0.0",
3838
"testdouble": "3.16.8",
3939
"xo": "0.39.1"
4040
},

test/integration.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import path from 'path';
22
import test from 'ava';
33
import fs from 'fs-extra';
44
import escape from 'escape-string-regexp';
5-
import tempy from 'tempy';
5+
import {temporaryDirectory} from 'tempy';
66
import * as td from 'testdouble';
77
import { promisify } from 'node:util';
88

@@ -43,7 +43,7 @@ test('Use "conventional-changelog-angular" by default', async (t) => {
4343
});
4444

4545
test('Set conventional-changelog-writer context', async (t) => {
46-
const cwd = tempy.directory();
46+
const cwd = temporaryDirectory();
4747

4848
const commits = [
4949
{hash: '111', message: 'fix(scope1): First fix'},
@@ -67,7 +67,7 @@ test('Set conventional-changelog-writer context', async (t) => {
6767
});
6868

6969
test('Set conventional-changelog-writer context with package.json', async (t) => {
70-
const cwd = tempy.directory();
70+
const cwd = temporaryDirectory();
7171

7272
const packageData = {name: 'package', version: '0.0.0'};
7373
await fs.outputJson(path.resolve(cwd, 'package.json'), packageData);

0 commit comments

Comments
 (0)