Skip to content

fix: preserve original extension when extension redirection is disabled #2447

fix: preserve original extension when extension redirection is disabled

fix: preserve original extension when extension redirection is disabled #2447

Triggered via pull request November 27, 2025 10:03
Status Failure
Total duration 5m 9s
Artifacts

test.yml

on: pull_request
Matrix: e2e
Matrix: integration-advanced-esm
Matrix: integration
Matrix: ut
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 10 warnings
integration (ubuntu-latest, 18) / test
Process completed with exit code 1.
tests/integration/redirect/jsNotResolved.test.ts > redirect.js.path false: tests/integration/redirect/jsNotResolved.test.ts#L36
Snapshot `redirect.js.path false 1` mismatched - Expected + Received "import lodash from "lodash"; import prettier from "prettier"; import bar from "./bar.js"; - import foo from "./foo.js"; + import foo from "./foo"; const src = lodash.toUpper(foo + bar + typeof prettier.version); export { src as default }; "
tests/integration/redirect/jsNotResolved.test.ts > redirect.js default: tests/integration/redirect/jsNotResolved.test.ts#L15
Snapshot `redirect.js default 1` mismatched - Expected + Received "import lodash from "lodash"; import prettier from "prettier"; import bar from "./bar.js"; - import foo from "./foo.js"; + import foo from "./foo"; const src = lodash.toUpper(foo + bar + typeof prettier.version); export { src as default }; "
tests/integration/preserve-jsx/index.test.ts > JSX syntax should be preserved: tests/integration/preserve-jsx/index.test.ts#L12
Snapshot `JSX syntax should be preserved 1` mismatched - Expected + Received @@ -24%2C16 +24%2C16 @@ var __webpack_exports__ = {}; __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__%2C { default%3A ()=>Root }); - const external_App1_cjs_namespaceObject = require("./App1.cjs"); - const external_App2_cjs_namespaceObject = require("./App2.cjs"); + const external_App1_namespaceObject = require("./App1"); + const external_App2_namespaceObject = require("./App2"); const DynamicComponent = ()=>{ - const Component = Math.random() > 0.5 ? external_App1_cjs_namespaceObject.App1A %3A external_App1_cjs_namespaceObject.App1C; - return import("./App1.cjs").then((mod)=>{ - const Dynamic = mod[Component === external_App1_cjs_namespaceObject.App1A ? 'App1A' %3A 'App1C']; + const Component = Math.random() > 0.5 ? external_App1_namespaceObject.App1A %3A external_App1_namespaceObject.App1C; + return import("./App1").then((mod)=>{ + const Dynamic = mod[Component === external_App1_namespaceObject.App1A ? 'App1A' %3A 'App1C']; return <Dynamic/>; }); }; const SectionWithSpread = (props)=><section {...props}/>; const spreadChildren = [ @@ -42%2C55 +42%2C55 @@ ]; function Root() { return <> <React.Fragment> <> - <external_App1_cjs_namespaceObject.App1A/> + <external_App1_namespaceObject.App1A/> <React.Suspense fallback={<div>Loading...</div>}> <DynamicComponent/> </React.Suspense> </> </React.Fragment> - <external_App1_cjs_namespaceObject.App1C> - {x ? <external_App1_cjs_namespaceObject.App1A> - <external_App1_cjs_namespaceObject.App1B> - <external_App2_cjs_namespaceObject.App2 props={external_App2_cjs_namespaceObject.app2Props}> - <external_App1_cjs_namespaceObject.App1C props={external_App1_cjs_namespaceObject.app1cProps}/> - </external_App2_cjs_namespaceObject.App2> - </external_App1_cjs_namespaceObject.App1B> - </external_App1_cjs_namespaceObject.App1A> %3A <external_App1_cjs_namespaceObject.App1B/>} - </external_App1_cjs_namespaceObject.App1C> - <external_App1_cjs_namespaceObject.App1C className="c"/> - <external_App1_cjs_namespaceObject.App1C className="app1c"></external_App1_cjs_namespaceObject.App1C> - <external_App1_cjs_namespaceObject.App1B/> + <external_App1_namespaceObject.App1C> + {x ? <external_App1_namespaceObject.App1A> + <external_App1_namespaceObject.App1B> + <external_App2_namespaceObject.App2 props={external_App2_namespaceObject.app2Props}> + <external_App1_namespaceObject.App1C props={external_App1_namespaceObject.app1cProps}/> + </external_App2_namespaceObject.App2> + </external_App1_namespaceObject.App1B> + </external_App1_namespaceObject.App1A> %3A <external_App1_namespaceObject.App1B/>} + </external_App1_namespaceObject.App1C> + <external_App1_namespaceObject.App1C className="c"/> + <external_App1_namespaceObject.App1C className="app1c"></external_App1_namespaceObject.App1C> + <external_App1_namespaceObject.App1B/> <NamespaceComponents.Button label="Namespace button" {...{ title%3A 'extra'%2C ['data-role']%3A 'primary' - }} data-count={3} icon={<external_App1_cjs_namespaceObject.App1A/>} fragmentContent={<> + }} data-count={3} icon={<external_App1_namespaceObject.App1A/>} fragmentContent={<> <span>Nested</span> <span>Fragment</span> </>}/> <div className="wrapper"> {[ <section key="namespace-import" data-index="0"> - <external_App1_cjs_namespaceObject.App data-dynamic="registry" data-item="one"/> + <external_App1_namespaceObject.App data-dynamic="registry" data-item="one"/> <foo%3Abar value="namespaced"/> <svg%3Apath d="M0%2C0 L10%2C10
integration (windows-latest, 22) / test
The strategy configuration was canceled because "integration.ubuntu-latest_18" failed
integration (windows-latest, 22) / test
The operation was canceled.
integration-advanced-esm (ubuntu-latest, 22) / test
Process completed with exit code 1.
tests/integration/redirect/jsNotResolved.test.ts > redirect.js.path false: tests/integration/redirect/jsNotResolved.test.ts#L36
Snapshot `redirect.js.path false 1` mismatched - Expected + Received "import lodash from "lodash"; import prettier from "prettier"; import bar from "./bar.js"; - import foo from "./foo.js"; + import foo from "./foo"; const src = lodash.toUpper(foo + bar + typeof prettier.version); export { src as default }; "
tests/integration/redirect/jsNotResolved.test.ts > redirect.js default: tests/integration/redirect/jsNotResolved.test.ts#L15
Snapshot `redirect.js default 1` mismatched - Expected + Received "import lodash from "lodash"; import prettier from "prettier"; import bar from "./bar.js"; - import foo from "./foo.js"; + import foo from "./foo"; const src = lodash.toUpper(foo + bar + typeof prettier.version); export { src as default }; "
tests/integration/preserve-jsx/index.test.ts > JSX syntax should be preserved: tests/integration/preserve-jsx/index.test.ts#L12
Snapshot `JSX syntax should be preserved 1` mismatched - Expected + Received @@ -24%2C16 +24%2C16 @@ var __webpack_exports__ = {}; __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__%2C { default%3A ()=>Root }); - const external_App1_cjs_namespaceObject = require("./App1.cjs"); - const external_App2_cjs_namespaceObject = require("./App2.cjs"); + const external_App1_namespaceObject = require("./App1"); + const external_App2_namespaceObject = require("./App2"); const DynamicComponent = ()=>{ - const Component = Math.random() > 0.5 ? external_App1_cjs_namespaceObject.App1A %3A external_App1_cjs_namespaceObject.App1C; - return import("./App1.cjs").then((mod)=>{ - const Dynamic = mod[Component === external_App1_cjs_namespaceObject.App1A ? 'App1A' %3A 'App1C']; + const Component = Math.random() > 0.5 ? external_App1_namespaceObject.App1A %3A external_App1_namespaceObject.App1C; + return import("./App1").then((mod)=>{ + const Dynamic = mod[Component === external_App1_namespaceObject.App1A ? 'App1A' %3A 'App1C']; return <Dynamic/>; }); }; const SectionWithSpread = (props)=><section {...props}/>; const spreadChildren = [ @@ -42%2C55 +42%2C55 @@ ]; function Root() { return <> <React.Fragment> <> - <external_App1_cjs_namespaceObject.App1A/> + <external_App1_namespaceObject.App1A/> <React.Suspense fallback={<div>Loading...</div>}> <DynamicComponent/> </React.Suspense> </> </React.Fragment> - <external_App1_cjs_namespaceObject.App1C> - {x ? <external_App1_cjs_namespaceObject.App1A> - <external_App1_cjs_namespaceObject.App1B> - <external_App2_cjs_namespaceObject.App2 props={external_App2_cjs_namespaceObject.app2Props}> - <external_App1_cjs_namespaceObject.App1C props={external_App1_cjs_namespaceObject.app1cProps}/> - </external_App2_cjs_namespaceObject.App2> - </external_App1_cjs_namespaceObject.App1B> - </external_App1_cjs_namespaceObject.App1A> %3A <external_App1_cjs_namespaceObject.App1B/>} - </external_App1_cjs_namespaceObject.App1C> - <external_App1_cjs_namespaceObject.App1C className="c"/> - <external_App1_cjs_namespaceObject.App1C className="app1c"></external_App1_cjs_namespaceObject.App1C> - <external_App1_cjs_namespaceObject.App1B/> + <external_App1_namespaceObject.App1C> + {x ? <external_App1_namespaceObject.App1A> + <external_App1_namespaceObject.App1B> + <external_App2_namespaceObject.App2 props={external_App2_namespaceObject.app2Props}> + <external_App1_namespaceObject.App1C props={external_App1_namespaceObject.app1cProps}/> + </external_App2_namespaceObject.App2> + </external_App1_namespaceObject.App1B> + </external_App1_namespaceObject.App1A> %3A <external_App1_namespaceObject.App1B/>} + </external_App1_namespaceObject.App1C> + <external_App1_namespaceObject.App1C className="c"/> + <external_App1_namespaceObject.App1C className="app1c"></external_App1_namespaceObject.App1C> + <external_App1_namespaceObject.App1B/> <NamespaceComponents.Button label="Namespace button" {...{ title%3A 'extra'%2C ['data-role']%3A 'primary' - }} data-count={3} icon={<external_App1_cjs_namespaceObject.App1A/>} fragmentContent={<> + }} data-count={3} icon={<external_App1_namespaceObject.App1A/>} fragmentContent={<> <span>Nested</span> <span>Fragment</span> </>}/> <div className="wrapper"> {[ <section key="namespace-import" data-index="0"> - <external_App1_cjs_namespaceObject.App data-dynamic="registry" data-item="one"/> + <external_App1_namespaceObject.App data-dynamic="registry" data-item="one"/> <foo%3Abar value="namespaced"/> <svg%3Apath d="M0%2C0 L10%2C10
integration (ubuntu-latest, 22) / test
The strategy configuration was canceled because "integration.ubuntu-latest_18" failed
integration (ubuntu-latest, 22) / test
The operation was canceled.
tests/integration/redirect/jsNotResolved.test.ts > redirect.js.path false: tests/integration/redirect/jsNotResolved.test.ts#L36
Snapshot `redirect.js.path false 1` mismatched - Expected + Received "import lodash from "lodash"; import prettier from "prettier"; import bar from "./bar.js"; - import foo from "./foo.js"; + import foo from "./foo"; const src = lodash.toUpper(foo + bar + typeof prettier.version); export { src as default }; "
tests/integration/redirect/jsNotResolved.test.ts > redirect.js default: tests/integration/redirect/jsNotResolved.test.ts#L15
Snapshot `redirect.js default 1` mismatched - Expected + Received "import lodash from "lodash"; import prettier from "prettier"; import bar from "./bar.js"; - import foo from "./foo.js"; + import foo from "./foo"; const src = lodash.toUpper(foo + bar + typeof prettier.version); export { src as default }; "
tests/integration/preserve-jsx/index.test.ts > JSX syntax should be preserved: tests/integration/preserve-jsx/index.test.ts#L12
Snapshot `JSX syntax should be preserved 1` mismatched - Expected + Received @@ -24%2C16 +24%2C16 @@ var __webpack_exports__ = {}; __webpack_require__.r(__webpack_exports__); __webpack_require__.d(__webpack_exports__%2C { default%3A ()=>Root }); - const external_App1_cjs_namespaceObject = require("./App1.cjs"); - const external_App2_cjs_namespaceObject = require("./App2.cjs"); + const external_App1_namespaceObject = require("./App1"); + const external_App2_namespaceObject = require("./App2"); const DynamicComponent = ()=>{ - const Component = Math.random() > 0.5 ? external_App1_cjs_namespaceObject.App1A %3A external_App1_cjs_namespaceObject.App1C; - return import("./App1.cjs").then((mod)=>{ - const Dynamic = mod[Component === external_App1_cjs_namespaceObject.App1A ? 'App1A' %3A 'App1C']; + const Component = Math.random() > 0.5 ? external_App1_namespaceObject.App1A %3A external_App1_namespaceObject.App1C; + return import("./App1").then((mod)=>{ + const Dynamic = mod[Component === external_App1_namespaceObject.App1A ? 'App1A' %3A 'App1C']; return <Dynamic/>; }); }; const SectionWithSpread = (props)=><section {...props}/>; const spreadChildren = [ @@ -42%2C55 +42%2C55 @@ ]; function Root() { return <> <React.Fragment> <> - <external_App1_cjs_namespaceObject.App1A/> + <external_App1_namespaceObject.App1A/> <React.Suspense fallback={<div>Loading...</div>}> <DynamicComponent/> </React.Suspense> </> </React.Fragment> - <external_App1_cjs_namespaceObject.App1C> - {x ? <external_App1_cjs_namespaceObject.App1A> - <external_App1_cjs_namespaceObject.App1B> - <external_App2_cjs_namespaceObject.App2 props={external_App2_cjs_namespaceObject.app2Props}> - <external_App1_cjs_namespaceObject.App1C props={external_App1_cjs_namespaceObject.app1cProps}/> - </external_App2_cjs_namespaceObject.App2> - </external_App1_cjs_namespaceObject.App1B> - </external_App1_cjs_namespaceObject.App1A> %3A <external_App1_cjs_namespaceObject.App1B/>} - </external_App1_cjs_namespaceObject.App1C> - <external_App1_cjs_namespaceObject.App1C className="c"/> - <external_App1_cjs_namespaceObject.App1C className="app1c"></external_App1_cjs_namespaceObject.App1C> - <external_App1_cjs_namespaceObject.App1B/> + <external_App1_namespaceObject.App1C> + {x ? <external_App1_namespaceObject.App1A> + <external_App1_namespaceObject.App1B> + <external_App2_namespaceObject.App2 props={external_App2_namespaceObject.app2Props}> + <external_App1_namespaceObject.App1C props={external_App1_namespaceObject.app1cProps}/> + </external_App2_namespaceObject.App2> + </external_App1_namespaceObject.App1B> + </external_App1_namespaceObject.App1A> %3A <external_App1_namespaceObject.App1B/>} + </external_App1_namespaceObject.App1C> + <external_App1_namespaceObject.App1C className="c"/> + <external_App1_namespaceObject.App1C className="app1c"></external_App1_namespaceObject.App1C> + <external_App1_namespaceObject.App1B/> <NamespaceComponents.Button label="Namespace button" {...{ title%3A 'extra'%2C ['data-role']%3A 'primary' - }} data-count={3} icon={<external_App1_cjs_namespaceObject.App1A/>} fragmentContent={<> + }} data-count={3} icon={<external_App1_namespaceObject.App1A/>} fragmentContent={<> <span>Nested</span> <span>Fragment</span> </>}/> <div className="wrapper"> {[ <section key="namespace-import" data-index="0"> - <external_App1_cjs_namespaceObject.App data-dynamic="registry" data-item="one"/> + <external_App1_namespaceObject.App data-dynamic="registry" data-item="one"/> <foo%3Abar value="namespaced"/> <svg%3Apath d="M0%2C0 L10%2C10
integration-advanced-esm (windows-latest, 22) / test
The strategy configuration was canceled because "integration-advanced-esm.ubuntu-latest_22" failed
integration-advanced-esm (windows-latest, 22) / test
The operation was canceled.
Test
The strategy configuration was canceled because "integration-advanced-esm.ubuntu-latest_22" failed
Test
The strategy configuration was canceled because "integration.ubuntu-latest_18" failed
Test
The strategy configuration was canceled because "integration.ubuntu-latest_18" failed
ut (ubuntu-latest, 22) / test
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
e2e (ubuntu-latest, 22) / test
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
ut (windows-latest, 22) / test
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
e2e (ubuntu-latest, 18) / test
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
integration (ubuntu-latest, 18) / test
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
integration (windows-latest, 22) / test
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
integration-advanced-esm (ubuntu-latest, 22) / test
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
integration (ubuntu-latest, 22) / test
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
integration-advanced-esm (windows-latest, 22) / test
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']
e2e (windows-latest, 22) / test
Unexpected input(s) 'predicate-quantifier', valid inputs are ['token', 'working-directory', 'ref', 'base', 'filters', 'list-files', 'initial-fetch-depth']