-
fix(testing): unset `customConditions` when running cypress tasks (#30709)
发布于
2025-04-14 13:17:34 +00:00 Current Behavior
Cypress e2e tasks in a workspace with the
customConditionsTypeScript
compiler option set, fail with the error:TSError: ⨯ Unable to compile TypeScript: error TS5098: Option 'customConditions' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'.This happens because Cypress forces ts-node to use
module: commonjs
andmoduleResolution: node10, which is not compatible with the
customConditionsTypeScript compiler option.Expected Behavior
Cypress e2e tasks in a workspace with the
customConditionsTypeScript
compiler option set should work as expected.Related Issue(s)
Fixes #
下载附件