Repository navigation
PR to update chai.d.ts to latest chai ([email protected]) - #5081
Merged
Merged
Conversation
Member
Contributor
|
Excellent work! But you need to rename the existing chai.d.ts file to chai-2.0.0.d.ts. See http://definitelytyped.org/guides/contributing.html#version Then, squash your changes and I'll give you a thumbs up. |
Contributor
Author
|
Done. Sorry for the delay. |
Contributor
|
Sorry, @olivr70, but can we also preserve the 2.0 tests? You can see https://github.com/borisyankov/DefinitelyTyped/tree/master/jasmine for an example of how it's organized. Sorry I didn't mention the tests before. |
vvakame
added a commit
that referenced
this pull request
Sep 8, 2015
PR to update chai.d.ts to latest chai ([email protected])
Member
This was referenced Apr 17, 2020
This was referenced Sep 12, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi everyone,
Chai has changed a lot lately, and many intersting features were missing.
Support added for : all, any, fail, ownPropertyDescriptor, frozen, sealed, extensible, NaN, isAbove, isBelow, sameDeepMembers
Updated some assertions : keys(Object), matches
Added new aliases : contains, includes, isOk, isNotOk
chai-tests.ts was updated accordingly.
I also added a subfolder tests. It contains effective mocha tests.
To run those tests :
The problem is that this directory is reported as "typing without test" and the npm test report marks it as failed. 2 options there :
Hope this helps