Skip to content

fix: relative declaration extension should match the extension of the code output #1186

fix: relative declaration extension should match the extension of the code output

fix: relative declaration extension should match the extension of the code output #1186

Triggered via pull request February 18, 2025 07:00
Status Failure
Total duration 51s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
ci
Module './jsx.jsx' was resolved to '/home/runner/work/mkdist/mkdist/test/fixture/src/components/jsx.jsx', but '--jsx' is not set.
ci: test/fixture/src/components/index.ts#L3
Module './tsx.tsx' was resolved to '/home/runner/work/mkdist/mkdist/test/fixture/src/components/tsx.tsx', but '--jsx' is not set.
ci: test/fixture/src/components/index.ts#L6
Cannot find module './blank.vue' or its corresponding type declarations.
ci: test/fixture/src/components/index.ts#L7
Cannot find module './script-setup-ts.vue' or its corresponding type declarations.
ci: test/fixture/src/components/index.ts#L8
Cannot find module './script-multi-block.vue' or its corresponding type declarations.
ci: test/fixture/src/components/index.ts#L9
Cannot find module './ts.vue' or its corresponding type declarations.
ci: test/fixture/src/components/tsx.tsx#L1
Cannot use JSX unless the '--jsx' flag is provided.
test/index.test.ts > mkdist > mkdist (emit types): test/index.test.ts#L206
Error: Snapshot `mkdist > mkdist (emit types) 5` mismatched - Expected + Received - "declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>; + "declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default; " ❯ test/index.test.ts:206:7
test/index.test.ts > mkdist > mkdist (emit types) [js]: test/index.test.ts#L351
Error: Snapshot `mkdist > mkdist (emit types) [js] 5` mismatched - Expected + Received - "declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>; + "declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default; " ❯ test/index.test.ts:351:7
ci
Process completed with exit code 1.