Skip to content

Comment on Jest/Vitest interactive course (runs in the browser)parent

Comments

You can get some type safety with jest mocks with jest.mocked

Anyways I mostly agree, it’s very annoying to use mocks in jest even past the code smell. But I also find certain DI codebases to be highly annoying too. Exceptionally verbose for what it actually accomplishes at times.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.