Skip to content

test: standardising internal test#5600

Merged
sheremet-va merged 73 commits intovitest-dev:mainfrom
sheremet-va:test/move-tests
Apr 26, 2024
Merged

test: standardising internal test#5600
sheremet-va merged 73 commits intovitest-dev:mainfrom
sheremet-va:test/move-tests

Conversation

@sheremet-va
Copy link
Member

@sheremet-va sheremet-va commented Apr 23, 2024

Description

This PR removes some small test packages, and moves tests from them into cli/config or core, if applicable.

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

@netlify
Copy link

netlify bot commented Apr 23, 2024

Deploy Preview for fastidious-cascaron-4ded94 canceled.

Name Link
🔨 Latest commit 1c1480e
🔍 Latest deploy log https://app.netlify.com/sites/fastidious-cascaron-4ded94/deploys/662ba54b1364d100083e1c00

@sheremet-va sheremet-va force-pushed the test/move-tests branch 2 times, most recently from 05a578f to 66d1e71 Compare April 24, 2024 15:31
@hi-ogawa
Copy link
Contributor

Awesome! I agree with the change. I also felt like most of the tests can go to core or some fixtures.

AriPerkkio
AriPerkkio previously approved these changes Apr 26, 2024
Copy link
Member

@AriPerkkio AriPerkkio left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

We should probably move all static fixtures (like those 4x math.test.ts) under test/test-utils at some point.

@sheremet-va sheremet-va merged commit 7c993e9 into vitest-dev:main Apr 26, 2024
@sheremet-va sheremet-va deleted the test/move-tests branch April 26, 2024 13:43
"publish-ci": "tsx scripts/publish-ci.ts",
"release": "bumpp package.json packages/*/package.json --commit --push --tag && git update-ref refs/heads/release refs/heads/main && git push origin release",
"test": "vitest --api -r test/core",
"test:run": "vitest run -r test/core",
Copy link
Contributor

Choose a reason for hiding this comment

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

@sheremet-va test:run was used by ecosystem-ci. Would you put it back or update the script in ecosystem-ci?
https://github.com/vitejs/vite-ecosystem-ci/blob/c88b8726c07c04e690c854457f60adf840223669/tests/vitest.ts#L9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants