Skip to content

refactor: use pathe #205

refactor: use pathe

refactor: use pathe #205

Triggered via pull request November 26, 2024 21:20
@sxzzsxzz
opened #37
feat/win
Status Failure
Total duration 1m 52s
Artifacts

unit-test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

9 errors
tests/rollup.test.ts > rollup > write entry-points (#22): tests/rollup.test.ts#L70
Error: Snapshot `rollup > write entry-points (#22) 1` mismatched - Expected + Received @@ -1,11 +1,11 @@ [ - "// b/index.d.ts + "// b/index.js - export { ComponentB } from "./ComponentB/ComponentB/index.jsx"; + export { ComponentB } from './ComponentB/ComponentB/index.js'; ", - "// b/index.js + "// b/index/index.d.ts - export { ComponentB } from './ComponentB/ComponentB/index.js'; + export { ComponentB } from "../ComponentB/ComponentB/index.jsx"; ", "// b/ComponentB/ComponentB/index.d.ts import React from "react"; interface ComponentBProps { test: string; @@ -21,22 +21,22 @@ return /* @__PURE__ */ React.createElement(React.Fragment, null, "ComponentB: ", test); } export { ComponentB }; ", - "// a/index.d.ts - export { ComponentA } from "./ComponentA/ComponentA/index.jsx"; - ", "// a/index.js export { ComponentA } from './ComponentA/ComponentA/index.js'; ", "// a/Models/model/index.d.ts export interface MyModel { some: string; } export declare const a = "b"; ", + "// a/index/index.d.ts + export { ComponentA } from "../ComponentA/ComponentA/index.jsx"; + ", "// a/ComponentA/ComponentA/index.d.ts import React from 'react'; export { a } from '../../Models/model/index.js'; interface ComponentAProps { test: string; ❯ tests/rollup.test.ts:70:41
tests/rollup.test.ts > rollup > write entry-points (#34): tests/rollup.test.ts#L94
Error: Snapshot `rollup > write entry-points (#34) 1` mismatched - Expected + Received @@ -1,19 +1,19 @@ [ - "// index.d.ts + "// index.js + + ", + "// main.d.ts export * from './foo/bar.js'; export * from './foo/bar/baz.js'; ", - "// index.js + "// foo/bar.js ", - "// foo/bar.d.ts + "// foo/bar/bar.d.ts - export type * from './bar/baz.js'; + export type * from './baz.js'; - export type * from '../index.js'; + export type * from '../../index.js'; - ", - "// foo/bar.js - ", "// foo/bar/baz.d.ts export type * from '../bar.js'; export type * from '../../index.js'; ", ❯ tests/rollup.test.ts:94:41
test (windows-latest, 20)
Process completed with exit code 1.
tests/rollup.test.ts > rollup > write entry-points (#22): tests/rollup.test.ts#L70
Error: Snapshot `rollup > write entry-points (#22) 1` mismatched - Expected + Received @@ -1,11 +1,11 @@ [ - "// b/index.d.ts + "// b/index.js - export { ComponentB } from "./ComponentB/ComponentB/index.jsx"; + export { ComponentB } from './ComponentB/ComponentB/index.js'; ", - "// b/index.js + "// b/index/index.d.ts - export { ComponentB } from './ComponentB/ComponentB/index.js'; + export { ComponentB } from "../ComponentB/ComponentB/index.jsx"; ", "// b/ComponentB/ComponentB/index.d.ts import React from "react"; interface ComponentBProps { test: string; @@ -21,22 +21,22 @@ return /* @__PURE__ */ React.createElement(React.Fragment, null, "ComponentB: ", test); } export { ComponentB }; ", - "// a/index.d.ts - export { ComponentA } from "./ComponentA/ComponentA/index.jsx"; - ", "// a/index.js export { ComponentA } from './ComponentA/ComponentA/index.js'; ", "// a/Models/model/index.d.ts export interface MyModel { some: string; } export declare const a = "b"; ", + "// a/index/index.d.ts + export { ComponentA } from "../ComponentA/ComponentA/index.jsx"; + ", "// a/ComponentA/ComponentA/index.d.ts import React from 'react'; export { a } from '../../Models/model/index.js'; interface ComponentAProps { test: string; ❯ tests/rollup.test.ts:70:41
tests/rollup.test.ts > rollup > write entry-points (#34): tests/rollup.test.ts#L94
Error: Snapshot `rollup > write entry-points (#34) 1` mismatched - Expected + Received @@ -1,19 +1,19 @@ [ - "// index.d.ts + "// index.js + + ", + "// main.d.ts export * from './foo/bar.js'; export * from './foo/bar/baz.js'; ", - "// index.js + "// foo/bar.js ", - "// foo/bar.d.ts + "// foo/bar/bar.d.ts - export type * from './bar/baz.js'; + export type * from './baz.js'; - export type * from '../index.js'; + export type * from '../../index.js'; - ", - "// foo/bar.js - ", "// foo/bar/baz.d.ts export type * from '../bar.js'; export type * from '../../index.js'; ", ❯ tests/rollup.test.ts:94:41
test (windows-latest, 22)
Process completed with exit code 1.
tests/rollup.test.ts > rollup > write entry-points (#22): tests/rollup.test.ts#L70
Error: Snapshot `rollup > write entry-points (#22) 1` mismatched - Expected + Received @@ -1,11 +1,11 @@ [ - "// b/index.d.ts + "// b/index.js - export { ComponentB } from "./ComponentB/ComponentB/index.jsx"; + export { ComponentB } from './ComponentB/ComponentB/index.js'; ", - "// b/index.js + "// b/index/index.d.ts - export { ComponentB } from './ComponentB/ComponentB/index.js'; + export { ComponentB } from "../ComponentB/ComponentB/index.jsx"; ", "// b/ComponentB/ComponentB/index.d.ts import React from "react"; interface ComponentBProps { test: string; @@ -21,22 +21,22 @@ return /* @__PURE__ */ React.createElement(React.Fragment, null, "ComponentB: ", test); } export { ComponentB }; ", - "// a/index.d.ts - export { ComponentA } from "./ComponentA/ComponentA/index.jsx"; - ", "// a/index.js export { ComponentA } from './ComponentA/ComponentA/index.js'; ", "// a/Models/model/index.d.ts export interface MyModel { some: string; } export declare const a = "b"; ", + "// a/index/index.d.ts + export { ComponentA } from "../ComponentA/ComponentA/index.jsx"; + ", "// a/ComponentA/ComponentA/index.d.ts import React from 'react'; export { a } from '../../Models/model/index.js'; interface ComponentAProps { test: string; ❯ tests/rollup.test.ts:70:41
tests/rollup.test.ts > rollup > write entry-points (#34): tests/rollup.test.ts#L94
Error: Snapshot `rollup > write entry-points (#34) 1` mismatched - Expected + Received @@ -1,19 +1,19 @@ [ - "// index.d.ts + "// index.js + + ", + "// main.d.ts export * from './foo/bar.js'; export * from './foo/bar/baz.js'; ", - "// index.js + "// foo/bar.js ", - "// foo/bar.d.ts + "// foo/bar/bar.d.ts - export type * from './bar/baz.js'; + export type * from './baz.js'; - export type * from '../index.js'; + export type * from '../../index.js'; - ", - "// foo/bar.js - ", "// foo/bar/baz.d.ts export type * from '../bar.js'; export type * from '../../index.js'; ", ❯ tests/rollup.test.ts:94:41
test (windows-latest, 18)
Process completed with exit code 1.