feat: add macro #2
Annotations
2 errors and 1 warning
Run bun run test:
tests/brisa/plugin.test.tsx#L58
Expected: "import { prerender as __prerender_macro } from \"prerender-macro/prerender\" with { \"type\": \"macro\" };import StaticComponent from \"@/components/static\" with { type: \"prerender\" };import DynamicComponent from \"@/components/dynamic\";export default function Test() {return (<div>{__prerender_macro({ componentPath: \"@/components/static\", componentModuleName: \"default\", componentProps: {} })}<DynamicComponent /></div>);}"
Received: "import { prerender as __prerender__macro } from \"prerender-macro/prerender\" with { \"type\": \"macro\" };import StaticComponent from \"@/components/static\" with { type: \"prerender\" };import DynamicComponent from \"@/components/dynamic\";export default function Test() {return (React.createElement(\"div\", null, React.createElement(StaticComponent, null), React.createElement(DynamicComponent, null)));}"
at /home/runner/work/prerender-macro/prerender-macro/tests/brisa/plugin.test.tsx:58:7
|
Run bun run test
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading