Skip to content

Commit add9313

Browse files
committed
tests: allow for new pnpmOptions
1 parent 8986554 commit add9313

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

apps/rush-lib/src/api/test/RushConfiguration.test.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ describe('RushConfiguration', () => {
6060
rushConfiguration.npmCacheFolder, './repo/common/temp/npm-cache');
6161
assertPathProperty('npmTmpFolder',
6262
rushConfiguration.npmTmpFolder, './repo/common/temp/npm-tmp');
63-
assertPathProperty('pnpmStoreFolder',
64-
rushConfiguration.pnpmStoreFolder, './repo/common/temp/pnpm-store');
63+
expect(rushConfiguration.pnpmOptions.pnpmStore).toEqual('local');
64+
assertPathProperty('pnpmStorePath',
65+
rushConfiguration.pnpmOptions.pnpmStorePath, './repo/common/temp/pnpm-store');
6566
assertPathProperty('packageManagerToolFilename',
6667
rushConfiguration.packageManagerToolFilename, './repo/common/temp/npm-local/node_modules/.bin/npm');
6768
assertPathProperty('rushJsonFolder',
@@ -126,8 +127,9 @@ describe('RushConfiguration', () => {
126127
rushConfiguration.npmCacheFolder, './repo/common/temp/npm-cache');
127128
assertPathProperty('npmTmpFolder',
128129
rushConfiguration.npmTmpFolder, './repo/common/temp/npm-tmp');
129-
assertPathProperty('pnpmStoreFolder',
130-
rushConfiguration.pnpmStoreFolder, './repo/common/temp/pnpm-store');
130+
expect(rushConfiguration.pnpmOptions.pnpmStore).toEqual('local');
131+
assertPathProperty('pnpmStorePath',
132+
rushConfiguration.pnpmOptions.pnpmStorePath, './repo/common/temp/pnpm-store');
131133
assertPathProperty('packageManagerToolFilename',
132134
rushConfiguration.packageManagerToolFilename, './repo/common/temp/pnpm-local/node_modules/.bin/pnpm');
133135
assertPathProperty('rushJsonFolder',
@@ -200,7 +202,7 @@ describe('RushConfiguration', () => {
200202
assertPathProperty('commonTempFolder', rushConfiguration.commonTempFolder, expectedValue);
201203
assertPathProperty('npmCacheFolder', rushConfiguration.npmCacheFolder, path.join(expectedValue, 'npm-cache'));
202204
assertPathProperty('npmTmpFolder', rushConfiguration.npmTmpFolder, path.join(expectedValue, 'npm-tmp'));
203-
assertPathProperty('pnpmStoreFolder', rushConfiguration.pnpmStoreFolder, path.join(expectedValue, 'pnpm-store'));
205+
assertPathProperty('pnpmStorePath', rushConfiguration.pnpmOptions.pnpmStorePath, path.join(expectedValue, 'pnpm-store'));
204206
assertPathProperty(
205207
'packageManagerToolFilename',
206208
rushConfiguration.packageManagerToolFilename,

0 commit comments

Comments
 (0)