Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for renderBody mocking #19

Open
redonkulus opened this issue Apr 29, 2022 · 0 comments
Open

Add support for renderBody mocking #19

redonkulus opened this issue Apr 29, 2022 · 0 comments

Comments

@redonkulus
Copy link

Description

Add a way to mock renderBody when testing components that use <${input.renderBody}/>

Why

There is currently no way to mock or set the renderBody when testing a marko template.

Possible Implementation & Open Questions

From @DylanPiercey:

import { render, createRenderBody } from "@marko/testing-library";

render(template, {
  renderBody: createRenderBody("<h1>Hi!</h1>")
});

Is this something you're interested in working on?

Maybe, depending on guidance from maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant