Skip to content

Commit fdb770b

Browse files
committed
test(package): skip inventory mode assertion on Windows
1 parent 1ff44c8 commit fdb770b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎src/infra/package-dist-inventory.test.ts‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ describe("package dist inventory", () => {
2323
await expect(writePackageDistInventory(packageRoot)).resolves.toEqual([
2424
"dist/current-BR6xv1a1.js",
2525
]);
26-
expect(
27-
(await fs.stat(path.join(packageRoot, "dist", "postinstall-inventory.json"))).mode & 0o777,
28-
).toBe(0o644);
26+
if (process.platform !== "win32") {
27+
expect(
28+
(await fs.stat(path.join(packageRoot, "dist", "postinstall-inventory.json"))).mode &
29+
0o777,
30+
).toBe(0o644);
31+
}
2932
await expect(readPackageDistInventoryIfPresent(packageRoot)).resolves.toStrictEqual([
3033
"dist/current-BR6xv1a1.js",
3134
]);

0 commit comments

Comments
 (0)