Comments (7)
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.
This is awesome, yah I'll update the old repository to point to jest-codemods.
from chai-to-jasmine.
@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.
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.
@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.
@AlexJuarez let me know if you started on this, else I'll work on this next week. : )
from chai-to-jasmine.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chai-to-jasmine.