Skip to content

Commit f8c0477

Browse files
benkeeniclanton
andauthored
Update libraries/rush-lib/src/logic/pnpm/test/PnpmOptionsConfiguration.test.ts
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
1 parent 1061655 commit f8c0477

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

libraries/rush-lib/src/logic/pnpm/test/PnpmOptionsConfiguration.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,16 +280,14 @@ describe(PnpmOptionsConfiguration.name, () => {
280280
});
281281

282282
it('handles undefined in updateGlobalOnlyBuiltDependenciesAsync', async () => {
283-
const testConfigPath: string = path.join(__dirname, 'temp', 'pnpm-config-undefined-test.json');
284-
const tempDir: string = path.dirname(testConfigPath);
285-
FileSystem.ensureFolder(tempDir);
283+
const testConfigPath: string = `${__dirname}/temp/pnpm-config-undefined-test.json`;
286284

287285
try {
288286
const initialConfig = {
289287
$schema: 'https://developer.microsoft.com/json-schemas/rush/v5/pnpm-config.schema.json',
290288
globalOnlyBuiltDependencies: ['node-gyp', 'esbuild']
291289
};
292-
JsonFile.save(initialConfig, testConfigPath, { ensureFolderExists: true });
290+
await JsonFile.saveAsync(initialConfig, testConfigPath, { ensureFolderExists: true });
293291

294292
const pnpmConfiguration: PnpmOptionsConfiguration = PnpmOptionsConfiguration.loadFromJsonFileOrThrow(
295293
testConfigPath,

0 commit comments

Comments
 (0)