Skip to content

feat: add macro

feat: add macro #2

Triggered via push March 21, 2024 17:31
Status Failure
Total duration 18s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
error: expect(received).toBe(expected): 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
build
Process completed with exit code 1.
build
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/.