Skip to content

Commit 30a60dd

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

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,7 @@ describe(PnpmOptionsConfiguration.name, () => {
244244
});
245245

246246
it('preserves $schema when it exists', () => {
247-
const testConfigPath: string = path.join(__dirname, 'temp', 'pnpm-config-with-schema.json');
248-
249-
const tempDir: string = path.dirname(testConfigPath);
250-
FileSystem.ensureFolder(tempDir);
247+
const testConfigPath: string = `${__dirname}/temp/pnpm-config-with-schema.json`;
251248

252249
try {
253250
// Create config with $schema
@@ -259,7 +256,7 @@ describe(PnpmOptionsConfiguration.name, () => {
259256
}
260257
}
261258
};
262-
JsonFile.save(configWithSchema, testConfigPath, { ensureFolderExists: true });
259+
await JsonFile.saveAsync(configWithSchema, testConfigPath, { ensureFolderExists: true });
263260

264261
const pnpmConfiguration: PnpmOptionsConfiguration = PnpmOptionsConfiguration.loadFromJsonFileOrThrow(
265262
testConfigPath,

0 commit comments

Comments
 (0)