Skip to content

Support vite#1430

Merged
NullVoxPopuli merged 24 commits intoember-cli:mainfrom
NullVoxPopuli:nvp/vite-support
Aug 26, 2025
Merged

Support vite#1430
NullVoxPopuli merged 24 commits intoember-cli:mainfrom
NullVoxPopuli:nvp/vite-support

Conversation

@NullVoxPopuli
Copy link
Contributor

@NullVoxPopuli NullVoxPopuli commented Jul 22, 2025

Depends on: #1431 (else diff will be too big) Edit: merged

Applies some changes from: #1387

This might be a breaking change because:

  • start() has to be async now (for vite only, and only when passing import.meta.glob (no eager as availableModules) -- this is so we don't load all test modules for every partition - but prior users won't notice.

Existing users of ember-exam (broccoli, webpack) hopefully won't be disrupted, and they don't need to change their start to be awaited (and this is true of vite as well -- we don't need to await the start function)

Important

One weird thing about using the ember exam command with vite is that the output folder must not be named anything other than dist. ember-cli (and the tooling team) agree that this restriction is a bug, and ember test (as well!) / ember exam should be able to handle --paths other than dist

@Techn1x
Copy link

Techn1x commented Jul 25, 2025

This all makes sense to me.

I also eventually realised I needed to make the fns async, but I neglected to update my comments with the code (didn't want to add more unnecessary detail).

Much better approach than what I had, and looks backwards compatible with pre-vite setups. I couldn't figure out a sensible way to do that. Nice work ✌️

Is the failing test an easy fix?

@NullVoxPopuli NullVoxPopuli force-pushed the nvp/vite-support branch 2 times, most recently from 56860ec to cd4b4e5 Compare July 28, 2025 13:25
@NullVoxPopuli NullVoxPopuli force-pushed the nvp/vite-support branch 3 times, most recently from b485ad1 to 9dfb60a Compare August 8, 2025 23:49
@NullVoxPopuli NullVoxPopuli force-pushed the nvp/vite-support branch 2 times, most recently from 9d8dd13 to 0f5e20c Compare August 21, 2025 15:06
Add test for split + partition and vite

Ignore test-execution json files

Support testem.cjs config files

Don't eagerly load modules during the load-balance branch

DEBUG/LOG - REVERT THIS

Formatting

--load-balance test

Update deps

Don't use the OnerrorValidation -- results in erroring when there are no tests to run for a browser

Formatting

Lockfile

ope

Re-arrange CI a bit

Update tests

Rename workflow

Fix base vite test

Cleanup
… it's supposed to launch browsers simultaneously, instead of one after the other
Copy link
Member

@mansona mansona left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, I'm happy with the tests so it's at least a viable thing for a release 👍 There might be some edge cases that show up in the ecosystem but I think we should release this and fix-forward 💪

@NullVoxPopuli NullVoxPopuli merged commit a813159 into ember-cli:main Aug 26, 2025
16 checks passed
@NullVoxPopuli NullVoxPopuli deleted the nvp/vite-support branch August 26, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants