Relative Content

Tag Archive for typescriptts-jestvitest

Jest custom matcher not recognized by IntelliJ

I have created a custom matcher with Jest named toHaveSameText the tests are running fine from both command line and from IntelliJ, However, IntelliJ editor is showing the matcher in red and project reports compilation error. If I hover over the error in intelliJ, I get following error on hover: TS2339: Property toHaveSameText does not exist on type Assertion<string>