From 5000761b8c342cc7bef143dd650bb9c8daf029ba Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 20 Aug 2024 20:24:30 -0700 Subject: [PATCH] Fix a test. --- .../@microsoft/rush/fix-test_2024-08-21-03-24.json | 11 +++++++++++ libraries/rush-lib/src/cli/test/Cli.test.ts | 8 ++++---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 common/changes/@microsoft/rush/fix-test_2024-08-21-03-24.json 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 () => {