-
-
Notifications
You must be signed in to change notification settings - Fork 697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin issues with Chai v4 #890
Comments
Can you also include https://github.com/producthunt/chai-enzyme please ? |
@jeromemacias Thanks for the heads up! Just ran the test suite with Chai v4; no issues. |
Hey friends! So, is anything left here @meeber? All we've gotta do is make sure those PRs are merged when |
There have been a number of commits in master since I tested these plugins. And we have a couple more on the way. I don't anticipate any new issues, but will need to test them again with the updated code for due diligence. Assuming there aren't any additional issues: The plugins listed under "minor issues" already either have a PR ready to merge, or a PR that just needs the version updated once 4.0 is release, and then it can be merged. The plugins listed under "major issues" need more work. @astorije is already aware of some changes that impact |
Development on chai-things has mostly stalled - in the current situation the featureset that chai-things really needs is not well catered for with chai's current plugin system. The proposed new system in #585 takes plugins like chai-things into account (hopefully). |
@keithamus @vieiralucas @lucasfcosta @shvaikalesh @astorije I ran the test suites for all of these plugins using the second canary release. There were a couple of new small issues in Finally, there's a new issue related to #900 that's causing three test suites to fail. Haven't had a chance to look into it in-depth, but it appears that the issue is related to
|
@keithamus @vieiralucas @lucasfcosta @shvaikalesh As mentioned above, several plugin test suites are failing in PhantomJS because of these lines: var excludeNames = Object.getOwnPropertyNames(testFn).filter(function(name) {
return !Object.getOwnPropertyDescriptor(testFn, name).configurable;
}); I won't have enough cycles to troubleshoot this in depth for a couple weeks. If no one else does either, then I suggest we hack-fix it by checking that the return value of |
Per #966, the PhantomJS 1.x issue is now resolved. |
|
I feel as though |
When checking for compatibility with Chai v4, I was using each plugin's master branch. Per chaijs/chai-spies#71, the current npm release of |
@meeber but according to what I've seen at that issue, Also, I think that we should focus on releasing I'm planning on releasing the v4 compatible versions of our plugins this sunday. If anyone wants to schedule a hangouts or a skype call so that we can get these done it would be awesome. Also, I remember @keithamus sent us a link with instructions for releasing modules but I can't find it. It would be great if we could have that in order to get this going. |
@lucasfcosta Right! |
There is a (easily solvable, but annoying) issue with chai-json-schema using chai@4 on node@4 - see chaijs/chai-json-schema#47 |
I went through the popular Chai plugins to see how their test suites fair with Chai v4. (Actually, I used the #884 build instead of the current canary release). Overall, we're in good shape. Here are my findings:
Major issues
chai-immutable
deep.property
tonested.property
. Also because of change in capitalization in values returned bytype-detect
. Also because.not.keys
was being treated implicitly as.not.any.keys
instead of.not.all.keys
. Further changes are likely needed due to change innot.property
.deep.property
tonested.property
, and to remove some of the.not.keys
tests since they no longer made sensepackage.json
needs updatingchai-things
any
flag in Chai coreany
flag in coreany
issuecontains
,any
, andall
#881) about possibly deprecatingany
in core, which would happen to resolve this problemMinor issues
chai-as-promised
deep.property
tonested.property
package.json
needs updatingchai-jquery
undefined
is explicitly passed as the second parameter to theproperty
assertion, it asserts that the value value of the property equalsundefined
.chai-http
deep.property
tonested.property
package.json
needs updatingdirty-chai
package.json
needs updatingchai-timers
above
no longer accepts strings.No issues
The text was updated successfully, but these errors were encountered: