Skip to content

test(angular-rsbuild): test compiler helper #96

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

Merged
merged 5 commits into from
Jun 3, 2025

Conversation

BioPhoton
Copy link
Collaborator

This PR includes:

  • unit tests for compiler helpers
  • integration tests for compiler helpers
  • fix deleteOutputDir to work in recursive files

Copy link

nx-cloud bot commented May 15, 2025

View your CI Pipeline Execution ↗ for commit ffcddd1.

Command Status Duration Result
nx-cloud record -- pnpm check-commit ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-15 19:38:43 UTC

*/
export async function deleteOutputDir(
root: string,
outputPath: string,
emptyOnlyDirectories?: string[]
preserveDirs?: string[]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

switched to preserveDirs as it reflects more what the logic wants to achieve

Comment on lines +49 to +51
// compute its path relative to `root`, then recurse as in deleteOutputDir resolve is called on root
const rel = relative(root, fullEntry);
await deleteOutputDir(root, rel, preserveDirs);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the recursive call was:

  • passing a already resolved path
  • not passing preserveDirs array

@BioPhoton BioPhoton requested a review from Coly010 May 15, 2025 19:36
@Coly010 Coly010 merged commit f77d82c into main Jun 3, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants