You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
any tool to migrate should/expect code to power-assert? #74
Yeah, it's complicated and multifunctional indeed. Well, the behaviour of the should/expect could depend on the tools/its syntax design, and that's why I think the migration topic could be out of the scope of this project, IMO.
Activity
watilde commentedon Jan 18, 2017
Hello! No, we don't have it, but it would be not hard to do manually since power-assert has only one method
assert.atian25 commentedon Jan 18, 2017
but
shouldis complex, such as:should.be.ok(someVar)someKey.should.not.exist()someKey.should.eql('aaa')should.throw(() => {})watilde commentedon Jan 18, 2017
Yeah, it's complicated and multifunctional indeed. Well, the behaviour of the
should/expectcould depend on the tools/its syntax design, and that's why I think the migration topic could be out of the scope of this project, IMO.twada commentedon Jan 18, 2017
@atian25 @watilde Thank you for your feature request! It's good to have migration path to assert.
Just begun chai-to-assert, a jscodeshift codemod that transforms from chai to assert. Highly experimental ;)
atian25 commentedon Mar 24, 2017
https://github.com/node-modules/should2assert
twada commentedon Mar 29, 2017
@atian25 Wow great! Now we have migration paths from both should.js and chai!
twada commentedon Jun 10, 2017
Tools available: