Open skovhus opened 6 years ago
When converting webpack to Jest, jest-codemods failed on converting the should.js construct oneOf.
webpack
jest-codemods
should.js
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")
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.
When converting
webpack
to Jest,jest-codemods
failed on converting theshould.js
constructoneOf
.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")
jest-codemods