Kenneth Skovhus
Kenneth Skovhus
> Why don't we just can pass headers to individual endpoint. That was also my initial though, to abstract this away... Works well for static headers, but it doesn’t work...
Thanks for reporting this! Feel free to submit a pull request, maybe you want to give it a try? : )
There is some existing work done here: https://github.com/skovhus/jest-codemods/pull/189 Let me know if you want to wrap that up. That would be a great contribution to the project. Thanks!
@sirreal thanks for reporting this! And thanks for the failing test.
Chaining is currently unsupported in the chai-should... But it should be possible to add, like we did in the `expect` codemod. : )
It seems like `jscodeshift` depends on `core-js` through `babel-register`, but still is not installed. Which version of node are you using?
@gziolo you did some manual transformation of Sinon in https://github.com/WordPress/gutenberg/pull/1788#issuecomment-313732854 ... Let me know if you have anything to add to the ticket above. You have more experience with Sinon...
Taking the examples from Sinon and trying to convert them to Jest by hand: ```javascript /* eslint-env jest */ import sinon from 'sinon'; const jQuery = { ajax: () =>...
@jordalgo I haven't started on it yet. Just did some manual transformation (see above) to figure out what we can do. : ) Let me know if you start on...
Thanks @gziolo! @jordalgo let me know if you need any help : )