nest
nest copied to clipboard
Update package.json
PR Checklist
Please check if your PR fulfills the following requirements:
- [ ] The commit message follows our guidelines: https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md
- [ ] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
PR Type
What kind of change does this PR introduce?
e2e test app.e2e-spec.ts has chai dependency which was not available in package,json.
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [x ] Other... Please describe:
Added
chaito dev dependencies. Using4.3.9for chai as the latest version gives import error for expect.
What is the current behavior?
npm run test:e2e fails when running test in app.e2e-spec.ts on import { expect } from "chai"
Issue Number: N/A
What is the new behavior?
npm run test:e2e now passes.
Does this PR introduce a breaking change?
- [ ] Yes
- [ x] No
Other information
Pull Request Test Coverage Report for Build 99eda344-75c9-4f7b-b0fe-46b7084b4540
Details
- 0 of 0 changed or added relevant lines in 0 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage remained the same at 92.207%
| Totals | |
|---|---|
| Change from base Build e18002f5-8ff6-4564-ba7e-328984ab8501: | 0.0% |
| Covered Lines: | 6744 |
| Relevant Lines: | 7314 |
💛 - Coveralls
instead of installing chai, we can just drop line 3 and change those to.equal to toEqual
https://github.com/nestjs/nest/blob/851b51f4e53309ec779ba8f86f70ff912811715e/sample/19-auth-jwt/e2e/app/app.e2e-spec.ts#L3
Pull Request Test Coverage Report for Build 256be342-8225-4e00-a8fe-64821a0665c7
Details
- 0 of 0 changed or added relevant lines in 0 files are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage remained the same at 92.207%
| Totals | |
|---|---|
| Change from base Build e18002f5-8ff6-4564-ba7e-328984ab8501: | 0.0% |
| Covered Lines: | 6744 |
| Relevant Lines: | 7314 |
💛 - Coveralls
instead of installing
chai, we can just drop line 3 and change thoseto.equaltotoEqual
I agree, I wonder why I didn't see it the first time and went on add it .....
we don't need to change the lock file tho
sure ....