79664396

Date: 2025-06-13 05:51:46
Score: 3
Natty:
Report link

I've found the issue- there's a custom Logger that got somehow chained into this component (I assume through the NGXSLoggerPlugin) that I didn't know about before (it's a big codebase and I'm relatively new to the team). Once that was appropriately mocked, the tests worked fine. I've updated the code in my question to comment out/in the code that I'm using currently, in case anyone else is looking for tips on mocking NGXS Store functions.

Reasons:
  • Blacklisted phrase (1): to comment
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: gizmo