Skip to content

Instantly share code, notes, and snippets.

View walkerdb's full-sized avatar

Walker Boyle walkerdb

View GitHub Profile
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' }