karma-chai-plugins icon indicating copy to clipboard operation
karma-chai-plugins copied to clipboard

Support chai 4.0

Open jscharett opened this issue 8 years ago • 4 comments

Looks like Chai has released a new 4.0 version. Any plans to update dependency to 4.x?

jscharett avatar Jun 06 '17 17:06 jscharett

There is such a plan, but I'm afraid we have to wait till all the plugins support it:

  • [x] domenic/sinon-chai#97
  • [x] domenic/chai-as-promised#198
  • [x] chaijs/chai-jquery#105
  • [ ] chaijs/chai-things#58
  • [x] nathanboktae/chai-dom#24

princed avatar Jun 08 '17 00:06 princed

https://github.com/nathanboktae/chai-dom/issues/24

jscharett avatar Jul 18 '17 00:07 jscharett

From https://github.com/chaijs/chai-things/issues/58#issuecomment-316061382:

This project is currently on pause while the chai team update other chai parts. We hope to bring this plugin back up to speed around chai v5. It is dependant on chaijs/chai#585

Is there some middle ground to make this project a bit more decoupled from such impediments?

gesellix avatar Sep 05 '17 10:09 gesellix

@gesellix I don't think so. Actually updating chai-as-promised and sinon-chai would involve some build process when this plugin is getting run. So it looks like there's not such so much sense in maintaining it anymore.

In our project we just imported sinon, chai and all the required plugins directly into a test entry point, because you can't avoid having an entry point even for tests these days anyway.

princed avatar Sep 20 '17 10:09 princed