Skip to content
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

Investigate potential remaining items for Chai v4 support #86

Closed
astorije opened this issue Nov 22, 2017 · 8 comments
Closed

Investigate potential remaining items for Chai v4 support #86

astorije opened this issue Nov 22, 2017 · 8 comments
Labels
Milestone

Comments

@astorije
Copy link
Owner

A long, long time ago, I listed a few things to look at to be ready for Chai v4 here: #69 (comment)

Need to wrap these.

@astorije astorije added this to the v2.0.0 milestone Nov 22, 2017
@ghost
Copy link

ghost commented May 17, 2018

Is there any update on version 2?

@astorije
Copy link
Owner Author

Hi @probedb! I stiiiill haven't finished this, I'm sorry. I'm almost there, there are a couple things left I want to look at before publishing this. Sorry about this!

In the meantime, I have just published v2.0.0-alpha.2 with the latest master. It is compatible with Chai v4 and requires Node v6+. Could you try it (npm install --save-dev chai-immutable@next or yarn add --dev chai-immutable@next) and let me know if you notice anything wrong with it?

Thanks!

@ghost
Copy link

ghost commented May 21, 2018

@astorije no problem, I'll give it a try tomorrow when I have chance to test it :)

@astorije
Copy link
Owner Author

@probedb, any luck?

@astorije
Copy link
Owner Author

astorije commented May 29, 2018

Hey @probedb, I have just released v2.0.0-rc.2 which hopefully is the last step before full Chai v4 support (finally!). Mind giving it a shot and letting me know if it works as expected for you?

@ghost
Copy link

ghost commented May 29, 2018

Sorry @astorije ended up busy! I've updated to 2.0.0-rc.2 and chai 4.1.2 and the only issues I have are: when doing:

expect(callback.args[0][0]).to.eql(new Error('something went wrong'))

I get:

AssertionError: expected [Error: something went wrong] to deeply equal [Error: something went wrong]
      + expected - actual

But I've had this before with error objects, there's 13 errors like this after the update.

@astorije
Copy link
Owner Author

I suspect this is unrelated to chai-immutable (or immutable itself), therefore not with the v2 either. Do you concur?

@ghost
Copy link

ghost commented May 30, 2018

@astorije yep I'd agree, I believe it's due to the way the object is created for comparison and something has changed in Chai.

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

No branches or pull requests

1 participant