File size: 821 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
/* global jest */
jest.autoMockOff()
const defineTest = require('jscodeshift/dist/testUtils').defineTest
const fixtures = [
'with-router-import',
'without-import',
'already-using-withrouter',
'using-inline-class',
'export-default-variable',
'export-default-variable-wrapping',
'no-transform',
'no-transform-method',
'wrapping-export',
'variable-export',
'arrow-function-component',
'destructuring-this',
'destructuring-this-class',
'destructuring-this-props',
'destructuring-this-props-nested',
'with-nested-arrow-function',
'componentdidupdate',
'componentwillreceiveprops',
'first-parameter-hoc',
'url-property-not-part-of-this-props',
]
for (const fixture of fixtures) {
defineTest(
__dirname,
'url-to-withrouter',
null,
`url-to-withrouter/${fixture}`
)
}
|