fix(js): disable tsx support for js libs since they should go through react (#8203)

This commit is contained in:
Jack Hsu 2021-12-16 23:10:31 -05:00 committed by GitHub
parent 9e1b50b079
commit 0a3350a661
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -644,9 +644,9 @@ describe('lib', () => {
}
},
transform: {
'^.+\\\\\\\\.[tj]sx?$': 'ts-jest'
'^.+\\\\\\\\.[tj]s$': 'ts-jest'
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/libs/my-lib'
};
"

View File

@ -212,7 +212,7 @@ async function addJest(
return await jestProjectGenerator(tree, {
project: options.name,
setupFile: 'none',
supportTsx: true,
supportTsx: false,
skipSerializers: true,
testEnvironment: options.testEnvironment,
skipFormat: true,