Skip to content

test(worker): make inline worker assertion more stable#21848

Merged
sapphi-red merged 2 commits intovitejs:mainfrom
sapphi-red:test/make-inline-worker-assertion-more-stable
Mar 17, 2026
Merged

test(worker): make inline worker assertion more stable#21848
sapphi-red merged 2 commits intovitejs:mainfrom
sapphi-red:test/make-inline-worker-assertion-more-stable

Conversation

@sapphi-red
Copy link
Member

Replace brittle expect(files.length).toBe(N) assertions in worker playground tests with semantic checks that test actual behavior instead of counting files.

The original intent from a9fe3e7#diff-120cddfdc6c1fd335c565b1283980ae88c57ded993e69f1eaa16f1d0159da0f4R20-R21 was to verify that inlined workers don't emit extra output files.

@sapphi-red sapphi-red added p1-chore Doesn't change code behavior (priority) test labels Mar 13, 2026
bluwy
bluwy previously approved these changes Mar 17, 2026
@sapphi-red sapphi-red merged commit 1b98588 into vitejs:main Mar 17, 2026
15 of 16 checks passed
@sapphi-red sapphi-red deleted the test/make-inline-worker-assertion-more-stable branch March 17, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p1-chore Doesn't change code behavior (priority) test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants