File size: 542 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
/* global jest */
jest.autoMockOff()

const defineTest = require('jscodeshift/dist/testUtils').defineTest

const fixtures = [
  'function-component',
  'function-component-2',
  'function-component-ignore',
  'function-expression',
  'function-expression-ignore',
  'existing-name',
  'existing-name-2',
  'existing-name-3',
  'existing-name-ignore',
  '1-starts-with-number',
  'special-ch@racter',
]

fixtures.forEach((test) =>
  defineTest(
    __dirname,
    'name-default-component',
    null,
    `name-default-component/${test}`
  )
)