This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.parser = 'tsx'; | |
module.exports = function transformer(file, api, options) { | |
const j = api.jscodeshift; | |
const root = j(file.source); | |
const { from: fromPath, to: toPath } = options; | |
const jestLookFor = ["mock", "doMock"]; | |
replaceImports(); |
Custom patch for dayjs@1.9.6, should work on later version untill iamkun/dayjs#1377 resolved.
Patches resolves compatability issue between dayjs timezone plugin and https://formatjs.io/docs/polyfills
OlderNewer