Jest

PHOTO EMBED

Tue Aug 24 2021 14:03:15 GMT+0000 (UTC)

Saved by @huilt1232

yarn init -y

yarn add --dev jest

yarn add --dev typescript ts-jest @types/jest @types/node ts-node ts-node-dev

yarn ts-jest config:init

package.json
"scripts": {
    "start":"ts-node main.ts",
    "dev":"ts-node-dev main.ts",
    "test": "jest"
}

yarn test
content_copyCOPY

https://cms.tecky.io/mod/page/view.php?id