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

Add more tests virtual files #1890

Merged
merged 3 commits into from
Apr 25, 2024
Merged

Add more tests virtual files #1890

merged 3 commits into from
Apr 25, 2024

Conversation

BlueCutOfficial
Copy link
Collaborator

@BlueCutOfficial BlueCutOfficial commented Apr 24, 2024

Context
Recently, several PRs have been merged that virtualize vendor.css (#1805), test-support.js (#1807), and test-support.css (#1811) files. These changes have been tested manually, but back then, we didn't add any new tests to assert the virtual contents are correctly served or present in the build output.

This PR adds the missing tests.

About searching code in CSS files
The CSS-related tests should have ideally relied on the Audit system to look for the pieces of styles that are expected to be present. But for now, this system presumes too many things about the location of the files we want to audit, it's not made to just take any given dist/. That's why globby is used to retrieve all the CSS files in the build output and we read their content to find the expected styles.

@BlueCutOfficial BlueCutOfficial marked this pull request as ready for review April 25, 2024 12:59
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.

LGTM 🎉 💪

@mansona mansona merged commit 3d20631 into main Apr 25, 2024
97 checks passed
@mansona mansona deleted the add-more-tests-virtual-files branch April 25, 2024 13:43
@github-actions github-actions bot mentioned this pull request Apr 25, 2024
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.

2 participants