Skip to content

Commit

Permalink
Fix a test.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed Aug 21, 2024
1 parent 01cbfb9 commit 5000761
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions common/changes/@microsoft/rush/fix-test_2024-08-21-03-24.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"type": "none",
"packageName": "@microsoft/rush"
}
],
"packageName": "@microsoft/rush",
"email": "[email protected]"
}
8 changes: 4 additions & 4 deletions libraries/rush-lib/src/cli/test/Cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 5000761

Please sign in to comment.