File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -305,7 +305,8 @@ export class ProjectConfigIpc extends EventEmitter {
305
305
// If they've got TypeScript installed, we can use
306
306
// ts-node for CommonJS
307
307
// ts-node/esm for ESM
308
- if ( hasTypeScriptInstalled ( this . projectRoot ) ) {
308
+ // If we're in a cy in cy project, we will handle registering typescript directly in the server entry point
309
+ if ( ! process . env . CYPRESS_INTERNAL_E2E_TESTING_SELF_PARENT_PROJECT && hasTypeScriptInstalled ( this . projectRoot ) ) {
309
310
debug ( 'found typescript in %s' , this . projectRoot )
310
311
if ( isProjectUsingESModules ) {
311
312
debug ( `using --experimental-specifier-resolution=node with --loader ${ tsNodeEsm } ` )
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const startCypress = async () => {
27
27
const { entryPoint } = require ( 'minimist' ) ( process . argv . slice ( 1 ) )
28
28
29
29
if ( entryPoint ) {
30
+ require ( '@packages/server/lib/plugins/child/register_ts_node' )
30
31
module . exports = runChildProcess ( entryPoint )
31
32
} else {
32
33
module . exports = startCypress ( )
You can’t perform that action at this time.
0 commit comments