Skip to content

Commit 27445b9

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 d89bc91 commit 27445b9

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,8 @@ describe(PnpmOptionsConfiguration.name, () => {
171171
}
172172
});
173173

174-
it('handles undefined catalogs', () => {
175-
const testConfigPath: string = path.join(__dirname, 'temp', 'pnpm-config-undefined-test.json');
176-
177-
const tempDir: string = path.dirname(testConfigPath);
178-
FileSystem.ensureFolder(tempDir);
174+
it('handles undefined catalogs', async () => {
175+
const testConfigPath: string = `${__dirname}/temp/pnpm-config-undefined-test.json`;
179176

180177
try {
181178
const initialConfig = {
@@ -185,7 +182,7 @@ describe(PnpmOptionsConfiguration.name, () => {
185182
}
186183
}
187184
};
188-
JsonFile.save(initialConfig, testConfigPath, { ensureFolderExists: true });
185+
await JsonFile.saveAsync(initialConfig, testConfigPath, { ensureFolderExists: true });
189186

190187
const pnpmConfiguration: PnpmOptionsConfiguration = PnpmOptionsConfiguration.loadFromJsonFileOrThrow(
191188
testConfigPath,

0 commit comments

Comments
 (0)