fix(js): disable tsx support for js libs since they should go through react (#8203)
This commit is contained in:
parent
9e1b50b079
commit
0a3350a661
@ -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'
|
||||
};
|
||||
"
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user