TypeScript-Node-Starter
TypeScript-Node-Starter copied to clipboard
removed chai and replaced it totally with jest
The chai testing framework is not required as Jest comes bundled with expect
and other utility methods.
Following two files were using chai
- user.test.ts
- contact.test.ts
Also removed chai from package.json and added "include": ["src/**/*", "test/**/*"]
in tsconfig.json to support Typescript in the test directory.
All test cases are passing after the change as you can see in the attachment
Can you, please, revert changes with white-space applied? It looks the semicolons were removed as well, not only unifiying the spaces. See ESLint config:
"semi": ["error", "always"], "quotes": ["error", "double"],
Not sure why it fails on CI, for me it works OK locallly. You could automate fix with package:
npm run lint
Thanks @peterblazejewicz I'll try that once I am free.