diff --git a/packages/cli/src/testUtils/matchFolderTransform.ts b/packages/cli/src/testUtils/matchFolderTransform.ts index c17b14822db6..03bdb766c7c3 100644 --- a/packages/cli/src/testUtils/matchFolderTransform.ts +++ b/packages/cli/src/testUtils/matchFolderTransform.ts @@ -21,7 +21,7 @@ type Options = { type MatchFolderTransformFunction = ( transformFunctionOrName: (() => any) | string, - fixtureName: string, + fixtureName?: string, options?: Options ) => Promise @@ -53,7 +53,7 @@ export const matchFolderTransform: MatchFolderTransformFunction = async ( const fixtureFolder = path.join( testPath, '../../__testfixtures__', - fixtureName + fixtureName || '' ) const fixtureInputDir = path.join(fixtureFolder, 'input') diff --git a/packages/codemods/src/codemods/v7.x.x/updateGraphQLConfig/__tests__/updateGraphqlConfig.test.ts b/packages/codemods/src/codemods/v7.x.x/updateGraphQLConfig/__tests__/updateGraphqlConfig.test.ts index ec34b6dca74c..a4de393e12a3 100644 --- a/packages/codemods/src/codemods/v7.x.x/updateGraphQLConfig/__tests__/updateGraphqlConfig.test.ts +++ b/packages/codemods/src/codemods/v7.x.x/updateGraphQLConfig/__tests__/updateGraphqlConfig.test.ts @@ -2,6 +2,6 @@ import { updateGraphqlConfig } from '../updateGraphqlConfig' describe('updateGraphQLConfig', () => { it('Replaces the JS FatalErrorPage with a new version that includes development info', async () => { - await matchFolderTransform(updateGraphqlConfig, 'javascript') + await matchFolderTransform(updateGraphqlConfig) }) }) diff --git a/packages/codemods/src/testUtils/matchFolderTransform.ts b/packages/codemods/src/testUtils/matchFolderTransform.ts index a56298c6ae84..8c7a77cbf2ef 100644 --- a/packages/codemods/src/testUtils/matchFolderTransform.ts +++ b/packages/codemods/src/testUtils/matchFolderTransform.ts @@ -19,7 +19,7 @@ type Options = { type MatchFolderTransformFunction = ( transformFunctionOrName: (() => any) | string, - fixtureName: string, + fixtureName?: string, options?: Options ) => Promise @@ -47,7 +47,7 @@ export const matchFolderTransform: MatchFolderTransformFunction = async ( const fixtureFolder = path.join( testPath, '../../__testfixtures__', - fixtureName + fixtureName || '' ) const fixtureInputDir = path.join(fixtureFolder, 'input')