From 4e1e6bc5572004c64f3128bdf19e25339c7e0bfb Mon Sep 17 00:00:00 2001 From: Willie Ruemmele Date: Wed, 31 Aug 2022 13:36:51 -0600 Subject: [PATCH] test: update assertion to use regex for new DH (@W-11466097) --- test/commands/lwc/test/run.nut.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/commands/lwc/test/run.nut.ts b/test/commands/lwc/test/run.nut.ts index 24ec3e0..498305e 100644 --- a/test/commands/lwc/test/run.nut.ts +++ b/test/commands/lwc/test/run.nut.ts @@ -56,8 +56,8 @@ describe('lightning:lwc:test:run', () => { const output = execCmd('force:lightning:lwc:test:run', { ensureExitCode: 0, }).shellOutput.stderr; - expect(output).to.include('Test Suites: 13 passed, 13 total'); - expect(output).to.include('Tests: 65 passed, 65 total'); + expect(output).to.match(/Test Suites:\s+\d+ passed,\s+\d+\s+total/); + expect(output).to.match(/Tests:\s+\d+\s+passed,\s+\d+\s+total/); expect(output).to.include('Snapshots: 0 total'); expect(output).to.include('PASS'); });