Skip to content

Commit 8bc3929

Browse files
test: fix failing esm long path test
1 parent dad3c5a commit 8bc3929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/es-module/test-esm-long-path-win.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('long path on Windows', () => {
6060
tmpdir.refresh();
6161

6262
fs.mkdirSync(packageDirPath);
63-
fs.writeFileSync(packageJSPath, '');
63+
fs.writeFileSync(packageJSPath, '{}');
6464
fs.writeFileSync(indexJSPath, '');
6565

6666
const packageJsonUrl = pathToFileURL(
@@ -83,7 +83,7 @@ describe('long path on Windows', () => {
8383
tmpdir.refresh();
8484

8585
fs.mkdirSync(packageDirPath);
86-
fs.writeFileSync(packageJSPath, '');
86+
fs.writeFileSync(packageJSPath, '{}');
8787
fs.writeFileSync(indexJSPath, '');
8888

8989
const packageJsonUrl = pathToFileURL(

0 commit comments

Comments
 (0)