Skip to content

Commit 346b88c

Browse files
committed
Fix browser tests.
1 parent b8b17f1 commit 346b88c

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

src/functions-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function createWritable({ filepath, compress = false })
5454
const dir = path.dirname(filepath);
5555

5656
// Create directory if base path does not exist.
57-
/* c8 ignore next 1 */ // sanity cases for dir path.
57+
/* c8 ignore next 4 */ // sanity cases for dir path.
5858
if (!fs.existsSync(dir) && dir && dir !== '.' && dir !== path.parse(dir).root)
5959
{
6060
fs.mkdirSync(dir, { recursive: true });

test/src/runner/tests/NodeTests.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import fs from 'node:fs';
2-
31
/**
42
* @param {object} opts - Test options
53
*
@@ -17,11 +15,6 @@ export function run({ Module, data, chai })
1715

1816
const { assert, expect } = chai;
1917

20-
before(() =>
21-
{
22-
fs.rmSync(`./test/fixture/output`, { recursive: true, force: true });
23-
});
24-
2518
describe(`Node / createReadable / createWritable tests (${data.suitePrefix})`, () =>
2619
{
2720
it(`can write then read (not compressed)`, async () =>

0 commit comments

Comments
 (0)