I am following the official doc of Jest testing
but after run npm run test
always get error:
FAIL src/rpc-add-item.test.ts
● Test suite failed to run
Unable to load the module "ts-patch/compiler". Using "ts-jest" requires this package to be installed. To fix it:
↳ install "ts-patch/compiler": `npm i -D ts-patch/compiler` (or `yarn add --dev ts-patch/compiler`)
I try to install npm i -D ts-patch/compiler
but it is not exist. After do some research fo ts-patch, seem like this ts-patch/compiler
is the live compiler of ts-patch.
Meanwhile, cannot find any example with jest test in github, could anyone help?
Btw, i am using the ts-patch 2.1.0 as the 3.x need TS > 5.