Skip to content

Commit ee321d3

Browse files
committed
Fix CI failure by forcing windows to use symlinks in unittest
1 parent 7fb7539 commit ee321d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/acceptance-tests/pkg-tests-specs/sources/features/pnpmStoreLocation.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ describe(`Features`, () => {
1717
{
1818
nodeLinker: `pnpm`,
1919
pnpmStoreFolder: customStoreFolderName,
20+
winLinkType: `symlinks`,
2021
},
2122
async ({path, run, source}) => {
2223
await run(`install`);
2324

25+
// Ensure that the default node_modules/.store folder is not created
26+
expect(xfs.existsSync(ppath.join(path, `node_modules`, `.store`))).toEqual(false);
27+
2428
// Ensure that the customized folder is created
2529
const absolutePnpmStorePath = ppath.join(path, customStoreFolderName);
2630
expect(xfs.existsSync(absolutePnpmStorePath)).toEqual(true);
2731

28-
// Ensure that the default node_modules/.store folder is not created
29-
const defaultStorePath = ppath.join(path, `node_modules`, `.store`);
30-
expect(xfs.existsSync(defaultStorePath)).toEqual(false);
31-
3232
// Ensure that the installed package is a symbolic link
3333
const installedPackagePath = ppath.join(path, `node_modules`, `no-deps`);
3434
expect(await determineLinkType(installedPackagePath)).toEqual(FsLinkType.SYMBOLIC);

0 commit comments

Comments
 (0)