⪼ Made with 💜 by realpolyglot.dev
The assignment is to switch a TypeScript project from Jest to Mocha, Chai, and Sinon. You might be wondering why anyone would want to do that; however, it doesn't matter. Sometimes, that is the assignment. Roger that. Let's go:
npm uninstall --save-dev @jest/types @swc-node/jest @types/jest jest jest-junit
npm install --save-dev ts-sinon mocha mocha-typescript @types/mocha mocha-junit-reporter sinon @types/sinon chai @types/chai chai-as-promised @types/chai-as-promised mochawesome should nyc
"nyc": {
"extension": [
".ts",
".tsx"
],
"exclude": [
"**/*.d.ts",
"**/*.spec.ts",
"**/test/**",
"**/gen/**",
"public/**",
"**/utils/**",
"src/Main.ts"
],
"all": true,
"reporter": [
"html",
"text"
],
"report-dir": "./public"
},