Skip to content

Commit 9e196d1

Browse files
committed
Replace trash with deleteAsync in test fixtures
1 parent ae490ce commit 9e196d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/test-fixtures.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function createTempFixtures(
7070
cleanupHook(async () => {
7171
await Promise.all(
7272
tempDirs.map(dir =>
73-
trash(dir).catch(() => {
73+
deleteAsync(dir).catch(() => {
7474
// Ignore cleanup errors.
7575
}),
7676
),
@@ -96,7 +96,7 @@ export async function withTempFixture(fixturePath: string): Promise<{
9696

9797
const cleanup = async () => {
9898
try {
99-
await trash(tempDir)
99+
await deleteAsync(tempDir)
100100
} catch {
101101
// Ignore cleanup errors.
102102
}

0 commit comments

Comments
 (0)