feat(Codemod) : Preact Migrations vX #3561
Annotations
4 errors and 1 warning
Run unit tests:
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
|
Run unit tests:
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' }
|
Run unit tests:
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
Process completed with exit code 1.
|
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/
|
Loading