Skip to content
New issue

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

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

Already on GitHub? # to your account

chore: rename test packages #11172

Merged
merged 3 commits into from
Dec 4, 2022

Conversation

sapphi-red
Copy link
Member

@sapphi-red sapphi-red commented Dec 4, 2022

Description

This PR renames internal packages for tests to have a @vitejs/test- prefix. This can avoid possible issues in future. For example, previously we had a false-positive security alert from dependabot.

I guess this PR will make other PRs in a conflict state.
But because #11167 was merged recently, I think it's a good opportunity to merge this change.

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@sapphi-red sapphi-red added the p1-chore Doesn't change code behavior (priority) label Dec 4, 2022
Comment on lines -287 to -290
test('@import dependency w/ stylus entry', async () => {
expect(await getColor('.css-dep-stylus')).toBe('red')
})

Copy link
Member Author

Choose a reason for hiding this comment

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

I removed this test because this test was not testing the stylus entry and this feature wasn't working in the first place.
This test was passing because @import 'css-dep' was resolved by relative path.

refs #2860

@patak-dev
Copy link
Member

Amazing work!

@patak-dev patak-dev merged commit 5170e44 into vitejs:main Dec 4, 2022
@sapphi-red sapphi-red deleted the chore/rename-test-packages branch December 4, 2022 10:55
futurGH pushed a commit to futurGH/vite that referenced this pull request Feb 26, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
p1-chore Doesn't change code behavior (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants