Skip to content

chore: 🤖 fix clutter in test terminal output#720

Merged
NetanelBasal merged 2 commits intongneat:masterfrom
chimurai:test-console-clutter
Sep 5, 2025
Merged

chore: 🤖 fix clutter in test terminal output#720
NetanelBasal merged 2 commits intongneat:masterfrom
chimurai:test-console-clutter

Conversation

@chimurai
Copy link
Contributor

@chimurai chimurai commented Sep 4, 2025

fix terminal console warnings and errors when running tests:

  • fix jest "ERROR ReferenceError: IntersectionObserver is not defined"
    • Use same mock from vitest:
      beforeEach(() => {
      const mockIntersectionObserver = vi.fn();
      mockIntersectionObserver.mockReturnValue({
      observe: () => null,
      unobserve: () => null,
      disconnect: () => null,
      });
      window.IntersectionObserver = mockIntersectionObserver;
      });
  • fix NG0912: Component ID generation collision detected (https://angular.dev/errors/NG0912)

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

image

What is the new behavior?

image

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@NetanelBasal NetanelBasal merged commit d7ec2c9 into ngneat:master Sep 5, 2025
3 checks passed
@chimurai chimurai deleted the test-console-clutter branch September 5, 2025 19:26
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