Skip to content

any tool to migrate should/expect code to power-assert? #74

Closed

Description

@atian25

power-assert is amazing

Activity

  1. watilde commented on Jan 18, 2017

    @watilde
    Member

    Hello! No, we don't have it, but it would be not hard to do manually since power-assert has only one method assert.

  2. atian25 commented on Jan 18, 2017

    @atian25
    Author

    but should is complex, such as:

    • should.be.ok(someVar)
    • someKey.should.not.exist()
    • someKey.should.eql('aaa')
    • should.throw(() => {})
  3. watilde commented on Jan 18, 2017

    @watilde
    Member

    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.

  4. twada commented on Jan 18, 2017

    @twada
    Member

    @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 ;)

  5. atian25 commented on Mar 24, 2017

    @atian25
    Author
  6. twada commented on Mar 29, 2017

    @twada
    Member

    @atian25 Wow great! Now we have migration paths from both should.js and chai!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions