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): test component resolver and devkit for ng versions #52

Merged

Conversation

BioPhoton
Copy link
Contributor

@BioPhoton BioPhoton commented Jan 12, 2025

This PR includes:

  • tests for the utils folder of rsbuild-plugin-angular
  • some adjustments to get better type narrowing and avoid type errors
  • fixed a condition that was never hit before. This needs a sanity check!
src/lib/plugin/utils               |   97.62 |    94.59 |     100 |   97.62 |                   
  component-resolvers.ts           |     100 |      100 |     100 |     100 |                   
  devkit.ts                        |   92.85 |       75 |     100 |   92.85 | 71-77             
  regex-filters.ts                 |     100 |      100 |     100 |     100 |                   
  source-file-cache.ts             |     100 |      100 |     100 |     100 |                   
  utils.ts                         |     100 |    91.66 |     100 |     100 | 29     

Copy link

nx-cloud bot commented Jan 12, 2025

View your CI Pipeline Execution ↗ for commit af57e13.

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

☁️ Nx Cloud last updated this comment at 2025-01-12 22:13:21 UTC

@@ -22,7 +22,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
import { SourceFileCache } from './source-file-cache';
import { SourceFileCache } from '../utils/source-file-cache';
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 assume this was a left over?
Screenshot 2025-01-12 at 22 52 57

@Coly010 Coly010 merged commit 46b474e into Coly010:main Jan 13, 2025
2 checks passed
BioPhoton added a commit to BioPhoton/ng-rspack-build that referenced this pull request Jan 14, 2025
BioPhoton added a commit to BioPhoton/ng-rspack-build that referenced this pull request Jan 14, 2025
BioPhoton added a commit to BioPhoton/ng-rspack-build that referenced this pull request Jan 14, 2025
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