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(rsbuild-plugin-angular): add file emitter unit tests #58

Merged

Conversation

BioPhoton
Copy link
Contributor

@BioPhoton BioPhoton commented Jan 15, 2025

This PR is a spinoff of #53 and only includes it's unit tests.

This PR includes:

  • unit tests for file emitter
  • type improvements
  • extracted isStandardJsFile and renamed file extension helper

Copy link

nx-cloud bot commented Jan 15, 2025

View your CI Pipeline Execution ↗ for commit bb8a0e6.

Command Status Duration Result
nx affected -t lint test build unit-test e2e-ci ✅ Succeeded 2m 5s View ↗
nx-cloud record -- pnpm check-commit ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-16 21:38:47 UTC

sourceFile,
(filename, data) => {
if (/\.[cm]?js$/.test(filename)) {
if (isStandardJsFile(filename)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I extracted the regex for testing and documentation reasons

@BioPhoton BioPhoton force-pushed the test/rsbuild-plugin-angular/file-emitter-unit branch 2 times, most recently from fba0073 to 0a6052a Compare January 16, 2025 16:17
@Coly010 Coly010 force-pushed the test/rsbuild-plugin-angular/file-emitter-unit branch from 7efd6b2 to 65dc64c Compare January 16, 2025 21:16
@Coly010 Coly010 self-requested a review January 16, 2025 21:20
@BioPhoton BioPhoton force-pushed the test/rsbuild-plugin-angular/file-emitter-unit branch from 5431119 to bb8a0e6 Compare January 16, 2025 21:34
@Coly010 Coly010 merged commit fe05c87 into Coly010:main Jan 16, 2025
2 checks passed
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.

2 participants