Giter VIP home page Giter VIP logo

Comments (7)

skovhus avatar skovhus commented on August 15, 2024 2

This has been released as https://github.com/skovhus/jest-codemods 0.9.0! 🍔 🍟

Thanks @AlexJuarez for your work! Based on your work the codemod now also supports:

  • warnings for unsupported features
  • removing chai imports and requires
  • a few bug fixes relates to length, to.be.empty, toBeInstanceOf
  • use native Jest methods instead of Jasmine
  • support extensible, sealed, frozen, lessThan, finite

Do you want to link to Jest-Codemods?

from chai-to-jasmine.

AlexJuarez avatar AlexJuarez commented on August 15, 2024 2

This is awesome, yah I'll update the old repository to point to jest-codemods.

from chai-to-jasmine.

AlexJuarez avatar AlexJuarez commented on August 15, 2024

@paularmstrong Sure. The transform converts chai chain expressions & assertions, it looks like the one in use only does assertions. What parts do you want me to split out?

from chai-to-jasmine.

skovhus avatar skovhus commented on August 15, 2024

Great work on this codemod!

Yeah, it might make sense to join forces. The part handling chai expect and should would be a great addition to Jest codemods.

Are you up for doing a PR? Or are you ok with me lifting functionality over to jest codemods?

from chai-to-jasmine.

AlexJuarez avatar AlexJuarez commented on August 15, 2024

@skovhus It would be my pleasure to contribute this back to jest codemods. I'll take a stab at a PR, and feel free to take any functionality you like.

from chai-to-jasmine.

skovhus avatar skovhus commented on August 15, 2024

@AlexJuarez let me know if you started on this, else I'll work on this next week. : )

from chai-to-jasmine.

AlexJuarez avatar AlexJuarez commented on August 15, 2024

@skovhus I looked into adding it however the conventions between the two code bases are fairly different and I wasn't sure how much you would want me to adapt this code to your preferences.

from chai-to-jasmine.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.