Skip to content

Commit 40cdd25

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 b8e7ef9 commit 40cdd25

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
@@ -204,11 +204,8 @@ describe(PnpmOptionsConfiguration.name, () => {
204204
});
205205

206206
describe('$schema handling', () => {
207-
it('does not fail when $schema is undefined', () => {
208-
const testConfigPath: string = path.join(__dirname, 'temp', 'pnpm-config-no-schema.json');
209-
210-
const tempDir: string = path.dirname(testConfigPath);
211-
FileSystem.ensureFolder(tempDir);
207+
it('does not fail when $schema is undefined', async () => {
208+
const testConfigPath: string = `${__dirname}/temp/pnpm-config-no-schema.json`;
212209

213210
try {
214211
const configWithoutSchema = {
@@ -218,7 +215,7 @@ describe(PnpmOptionsConfiguration.name, () => {
218215
}
219216
}
220217
};
221-
JsonFile.save(configWithoutSchema, testConfigPath, { ensureFolderExists: true });
218+
await JsonFile.saveAsync(configWithoutSchema, testConfigPath, { ensureFolderExists: true });
222219

223220
const pnpmConfiguration: PnpmOptionsConfiguration = PnpmOptionsConfiguration.loadFromJsonFileOrThrow(
224221
testConfigPath,

0 commit comments

Comments
 (0)