wxt icon indicating copy to clipboard operation
wxt copied to clipboard

Add WXT to Vite Ecosystem tests

Open aklinker1 opened this issue 3 years ago • 7 comments

https://github.com/vitejs/vite-ecosystem-ci?tab=readme-ov-file

aklinker1 avatar Nov 19 '23 18:11 aklinker1

Hi! I'd like to work on this issue. Is it still relevant, and would a PR adding WXT tests to vitejs/vite-ecosystem-ci be welcome?

AchieverSana avatar Jun 24 '26 04:06 AchieverSana

It is, and yes, I'd appreciate help with this, thanks!

The main thing we need to make sure doesn't break is dev mode, I'm not sure the ecosystem repo has infrastructure setup for playwrite, but I've never looked into it beyond knowing it's necessary.

aklinker1 avatar Jun 24 '26 14:06 aklinker1

Looked into this — WXT's e2e/dev.test.ts already tests dev mode through Vitest, so no Playwright needed there.

One thing I noticed: WXT uses Bun for its workspace, and I don't see Bun set up on the ecosystem-ci runners (e.g. tests/one.ts is disabled with a "until we figured out how to support bun" note).

Should I have the suite install Bun manually as part of setup, or is there a preferred way around this?

AchieverSana avatar Jun 25 '26 06:06 AchieverSana

Didn't want to block on a reply, so I dug in further — confirmed tests/one.ts is disabled specifically because Bun isn't installed on the ecosystem-ci runners, so this is an infra gap rather than anything WXT-specific. My plan: add a conditional oven-sh/setup-bun@v2 step scoped to just the wxt suite, and register wxt in both ecosystem-ci.yml and ecosystem-ci-selected.yml. Starting that on my fork now — flag it if you'd prefer a different approach, otherwise I'll have a PR ready soon.

AchieverSana avatar Jun 25 '26 08:06 AchieverSana

I haven't looked into what this should look like, so this approach sounds good to me. It'll depend on what their maintainers say.

aklinker1 avatar Jun 30 '26 19:06 aklinker1

Sounds good, thanks for confirming! I'll keep an eye on feedback from the vite-ecosystem-ci maintainers on the PR and adjust as needed.

AchieverSana avatar Jul 01 '26 03:07 AchieverSana

I just updated the project and tests to run against vite 8, not sure if that was causing problems.

aklinker1 avatar Aug 02 '26 01:08 aklinker1