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: {
|
transform: {
|
||||||
'^.+\\\\\\\\.[tj]sx?$': 'ts-jest'
|
'^.+\\\\\\\\.[tj]s$': 'ts-jest'
|
||||||
},
|
},
|
||||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
|
moduleFileExtensions: ['ts', 'js', 'html'],
|
||||||
coverageDirectory: '../../coverage/libs/my-lib'
|
coverageDirectory: '../../coverage/libs/my-lib'
|
||||||
};
|
};
|
||||||
"
|
"
|
||||||
|
|||||||
@ -212,7 +212,7 @@ async function addJest(
|
|||||||
return await jestProjectGenerator(tree, {
|
return await jestProjectGenerator(tree, {
|
||||||
project: options.name,
|
project: options.name,
|
||||||
setupFile: 'none',
|
setupFile: 'none',
|
||||||
supportTsx: true,
|
supportTsx: false,
|
||||||
skipSerializers: true,
|
skipSerializers: true,
|
||||||
testEnvironment: options.testEnvironment,
|
testEnvironment: options.testEnvironment,
|
||||||
skipFormat: true,
|
skipFormat: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user