Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

removed chai and replaced it totally with jest #287

Open
wants to merge 256 commits into
base: master
Choose a base branch
from

Conversation

nishat-sayyed
Copy link

The chai testing framework is not required as Jest comes bundled with expect and other utility methods.

Following two files were using chai

  1. user.test.ts
  2. 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
image

Bowden Kelly and others added 30 commits May 19, 2017 14:13
Update references from bowdenk7 repo to Microsoft repo
added package-lock for npm5 and fixed bug with flash messages
Added `build` `preLaunchTask` for debug configuration
Removed duplication in npm scripts `serve` and `watch`
…MaxOptions'.

fix err TypeScript-Node-Starter/src/controllers/api.ts[6, 9]: missing whitespace, 8 files
fix bugs of issue 15
fit  bugs of issue 15 and some other bugs caused by tslint
port changes from PR microsoft#11 and update package.lock from latest npm version
Bump tasks.json version from 0.10 to 2.00. Add default build task.
…added recommended extensions using vs code's extensions.json
Orta and others added 26 commits September 7, 2019 09:07
Use update indexes access in Mongoose configuration. Fixes microsoft#225
- upgrade to latest packages
- cast `req.user` as `UserDocument`
- update logger to use latest Winston syntax
- disable `no-inferrable-types`, Mongoose use unified topology

Thx to @CarlosSolrac
ESLint, no any, no inferrable types, unused vars - warning

thx to @GrayStrider
…e Mac OS

Document use of the home directory on macOS 10.15 and above
Thanks to @memasdeligeorgakis
- remove @types/dotenv
- dotenv 8.1.0 > 8.2.0
- @types/connect-mongo 0.0.43 > 3.0.0
- concurrently 4.1.2 > 5.0.0

Thanks!
Update node-sass to enable it to compile on the Mac when using Node v13.2.0

Thanks to @CarlosKlapp
This updates Jest and its dependencies, removing the warning about the left-pad module deprecation.

Thanks!
…precated

vscode-eslint v2 settings patch
Added SendGrid Username, Password, Port to .env.example
- `request`
- `request-promise`

`request` first appeared as part of initial commit but it seems to be
left-over from non commited implementation:
https://git.io/JvgNV
`request-promise` was added in different PR but it seems without related
code:
https://git.io/JvgN6

/cc @naknode

Thanks!
Update README.md to frame what this repo is
@msftclas
Copy link

msftclas commented May 13, 2020

CLA assistant check
All CLA requirements met.

@peterblazejewicz
Copy link
Collaborator

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

@nishat-sayyed
Copy link
Author

Thanks @peterblazejewicz I'll try that once I am free.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet