Skip to content

Commit 940e895

Browse files
committed
fix(dev-server-esbuild): use expectIncludes for better assertion errors
Assisted-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0f4c7fa commit 940e895

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/dev-server-esbuild/test/target.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ describe('esbuildPlugin target', () => {
367367

368368
assert.equal(response.status, 200);
369369
assert.equal(response.headers.get('content-type'), 'text/html; charset=utf-8');
370-
assert.ok(text.includes(importmapString));
371-
assert.ok(text.includes(jsonString));
370+
expectIncludes(text, importmapString);
371+
expectIncludes(text, jsonString);
372372
} finally {
373373
server.stop();
374374
}

0 commit comments

Comments
 (0)