This file contains hidden or 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
| import { describe, expect, it } from 'vitest'; | |
| import jscodeshift from 'jscodeshift'; | |
| import migrateDefaultExportsToNamedImports from './migrate-default-exports-to-named-exports'; | |
| const testData = { | |
| fileWithDefaultExport: { | |
| before: ` | |
| const SomeOtherVar = 'should be unchanged'; | |
| const MyExport = 'this should change'; | |
| function MyFunctionExport() { return 'this should change' } |
OlderNewer