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

Refactors tests to abstract implementation details #6711

Merged
merged 14 commits into from
Mar 5, 2025
Merged

Refactors tests to abstract implementation details #6711

merged 14 commits into from
Mar 5, 2025

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Mar 4, 2025

What's the problem this PR addresses?

Some of our tests rely on implementation details which can make refactoring more difficult.

How did you fix it?

This diff attempts to remove checks for things that don't directly match the test description, by using standard APIs as much as possible. For example, if a test wants to read a file from a dependency, it should do so by calling require.resolve to find out the location of this file rather than by hardcoding it.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@arcanis arcanis merged commit 6b3f3e7 into master Mar 5, 2025
26 checks passed
@arcanis arcanis deleted the zpm branch March 5, 2025 09:03
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.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy