Skip to content

feat(Codemod) : Preact Migrations vX #3561

feat(Codemod) : Preact Migrations vX

feat(Codemod) : Preact Migrations vX #3561

Triggered via pull request August 21, 2024 11:30
Status Failure
Total duration 2m 40s
Artifacts

test.yml

on: pull_request
Matrix: Run unit tests
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
packages/codemods/preact/X/import-source-update/test/test.ts > preact/10/import-source-update > test #1: packages/codemods/preact/X/import-source-update/test/test.ts#L43
AssertionError: Expected values to be loosely deep-equal: 'import { Provider } from "react-redux";\n' + 'import { observer } from "mobx-react";\n' + 'import { render } from "preact/compat";' should loosely deep-equal 'import { Provider } from "react-redux";\n' + 'import { observer } from "mobx-react";\n' + 'import { createPortal } from "preact/compat";\n' + 'import { render } from "preact/compat";' - Expected + Received import { Provider } from "react-redux"; import { observer } from "mobx-react"; - import { createPortal } from "preact/compat"; import { render } from "preact/compat"; ❯ packages/codemods/preact/X/import-source-update/test/test.ts:43:12
packages/codemods/preact/X/libraryAuthors_attribute-node-children-renaming/test/test.ts > preact-to-react/attribute-node-children-renaming > test #2: packages/codemods/preact/X/libraryAuthors_attribute-node-children-renaming/test/test.ts#L50
Error: ENOENT: no such file or directory, open '/home/runner/work/codemod/codemod/packages/codemods/preact/X/libraryAuthors_attribute-node-children-renaming/__testfixtures__/fixture2.input.ts' ❯ packages/codemods/preact/X/libraryAuthors_attribute-node-children-renaming/test/test.ts:50:19 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/runner/work/codemod/codemod/packages/codemods/preact/X/libraryAuthors_attribute-node-children-renaming/__testfixtures__/fixture2.input.ts' }
packages/codemods/preact/X/props-children-to-child-array/test/test.ts > preact/10/props-children-to-child-array > test #1: packages/codemods/preact/X/props-children-to-child-array/test/test.ts#L43
AssertionError: Expected values to be loosely deep-equal: 'import { toChildArray } from "preact";\n' + 'function Foo(props) {\n' + ' const count = toChildArray(props.children).length;\n' + ' return < div > I have { count } children < /div>;\n' + '}' should loosely deep-equal 'import { toChildArray } from "preact";\n' + '\n' + 'function Foo(props) {\n' + ' const count = toChildArray(props.children).length;\n' + ' return < div > I have { count } children < /div>;\n' + '}' - Expected + Received import { toChildArray } from "preact"; - function Foo(props) { const count = toChildArray(props.children).length; return < div > I have { count } children < /div>; } ❯ packages/codemods/preact/X/props-children-to-child-array/test/test.ts:43:12
Run unit tests (ubuntu-latest, true)
Process completed with exit code 1.
Run unit tests (windows-latest, false)
The job was canceled because "ubuntu-latest_true" failed.
Run unit tests (ubuntu-latest, true)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/