diff --git a/tools/generators/migrate-converged-pkg/index.spec.ts b/tools/generators/migrate-converged-pkg/index.spec.ts index 5e0124bf699dd..0e0cd016a6fcb 100644 --- a/tools/generators/migrate-converged-pkg/index.spec.ts +++ b/tools/generators/migrate-converged-pkg/index.spec.ts @@ -332,8 +332,6 @@ describe('migrate-converged-pkg generator', () => { '**/*.test.js', '**/*.test.jsx', '**/*.d.ts', - './src/testing/**/*.js', - './src/testing/**/*.jsx', ]); }); diff --git a/tools/generators/migrate-converged-pkg/index.ts b/tools/generators/migrate-converged-pkg/index.ts index 91ffb014520a6..21d1cd3bf3800 100644 --- a/tools/generators/migrate-converged-pkg/index.ts +++ b/tools/generators/migrate-converged-pkg/index.ts @@ -262,17 +262,13 @@ const templates = { outDir: 'dist', types: ['jest', 'node'], } as TsConfig['compilerOptions'], - include: [ - '**/*.spec.ts', - '**/*.spec.tsx', - '**/*.test.ts', - '**/*.test.tsx', - '**/*.d.ts', - './src/testing/**/*.ts', - './src/testing/**/*.tsx', - ], + include: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.ts', '**/*.test.tsx', '**/*.d.ts'], }; + if (options.hasConformance) { + tsConfig.include.push('./src/testing/**/*.ts', './src/testing/**/*.tsx'); + } + if (options.js) { tsConfig.include = globsToJs(tsConfig.include); }