发布

  • fix(testing): unset `customConditions` when running cypress tasks (#30709)

    frostbyte_neo 发布于 2025-04-14 13:17:34 +00:00

    Current Behavior

    Cypress e2e tasks in a workspace with the customConditions TypeScript
    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
    and moduleResolution: node10, which is not compatible with the
    customConditions TypeScript compiler option.

    Expected Behavior

    Cypress e2e tasks in a workspace with the customConditions TypeScript
    compiler option set should work as expected.

    Related Issue(s)

    Fixes #

    下载附件