jest-codemods
jest-codemods copied to clipboard
Implement missing should.js transformations
When converting webpack
to Jest, jest-codemods
failed on converting the should.js
construct oneOf
.
Let us go over the should.js
transformer and see if there are more matchers that I missed.
- [ ]
expect(typeof id).to.be.oneOf("number", "string")
- [ ] figure out if there are more matchers that are not supported by
jest-codemods
I remember there were also quite a few false positives (where changes were made to code that shouldn't have been touched by the codemods).
Let me know if you remember any examples of this.