fix(check): stabilize pnpm check on Windows
This commit is contained in:
6 files changed
+39
-14
No files matched your search
@@ -25,7 +25,12 @@ test("matches a module invoked through an npm-style symlink", async () => {
|
||||
const bin = join(dir, "dbx");
|
||||
await mkdir(join(dir, "dist"));
|
||||
await writeFile(entry, "", "utf-8");
|
||||
await symlink(entry, bin);
|
||||
try {
|
||||
await symlink(entry, bin);
|
||||
} catch (error) {
|
||||
if ((error as NodeJS.ErrnoException).code !== "EPERM") throw error;
|
||||
return;
|
||||
}
|
||||
|
||||
assert.equal(isMainModule(pathToFileURL(entry).href, bin), true);
|
||||
} finally {
|
||||
|
||||
Reference in new issue
Block a user