diff --git a/common/changes/@microsoft/rush/fix-test_2024-08-21-03-24.json b/common/changes/@microsoft/rush/fix-test_2024-08-21-03-24.json new file mode 100644 index 00000000000..efcd84c45fb --- /dev/null +++ b/common/changes/@microsoft/rush/fix-test_2024-08-21-03-24.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "", + "type": "none", + "packageName": "@microsoft/rush" + } + ], + "packageName": "@microsoft/rush", + "email": "iclanton@users.noreply.github.com" +} \ No newline at end of file diff --git a/libraries/rush-lib/src/cli/test/Cli.test.ts b/libraries/rush-lib/src/cli/test/Cli.test.ts index 2fca1b5a5b4..a5b596d8b1d 100644 --- a/libraries/rush-lib/src/cli/test/Cli.test.ts +++ b/libraries/rush-lib/src/cli/test/Cli.test.ts @@ -13,14 +13,14 @@ describe('CLI', () => { const workingDir: string = '/'; const startPath: string = path.resolve(__dirname, '../../../lib-commonjs/start.js'); - await expect(async () => { - await Utilities.executeCommandAsync({ + await expect( + Utilities.executeCommandAsync({ command: 'node', args: [startPath], workingDirectory: workingDir, suppressOutput: true - }); - }).not.toThrow(); + }) + ).resolves.not.toThrow(); }); it('rushx should pass args to scripts', async () => {