Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: coverage to settings related with backend integrations #3081

Merged
merged 6 commits into from
Apr 29, 2021

Conversation

ElMassimo
Copy link
Contributor

@ElMassimo ElMassimo commented Apr 21, 2021

Description 📖

This pull request adds a few tests to ensure there is coverage around root, base, build.outDir, build.rollupOptions.input, and base, which are configured differently when used through a backend integration such as Vite Ruby or Laravel Vite.

Also, it prevents regressions (such as #2201) when serving files outside of Vite's root, which is also relevant for backend integrations.

Background 📜

This was originally merged in #2358 and later reverted in #3015 because the approach used in the test was causing problems.

After a discussion with @patak-js, we decided that it was worth adding a separate playground, and that we could leverage the opportunity to test root and other options that are relied upon in backend integrations.

Screenshots 📷

The new playground, in the future it could be used to cover other configuration that is relevant for backend integrations.

Screen Shot 2021-04-21 at 17 39 57

@Shinigami92 Shinigami92 added p1-chore Doesn't change code behavior (priority) test labels Apr 22, 2021
@patak-dev
Copy link
Member

Thanks @ElMassimo! Looks good, this will help a lot.

Could you merge main to re-trigger the CI tests? There were a few fixes merges that should make this PR all green.

@patak-dev patak-dev mentioned this pull request Apr 23, 2021
9 tasks
@patak-dev
Copy link
Member

@ElMassimo if you merge main, the test suite should run with this fix #3185, which is going to show the correct error in windows instead of the timeout issue

@patak-dev patak-dev changed the title test: Add test coverage to settings related with backend integrations test: coverage to settings related with backend integrations Apr 29, 2021
@patak-dev patak-dev merged commit b40163c into vitejs:main Apr 29, 2021
@ElMassimo ElMassimo deleted the test-root-and-outer-imports branch April 29, 2021 15:45
TobiasMelen pushed a commit to TobiasMelen/vite that referenced this pull request May 3, 2021
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.

None yet

3 participants