mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
* feat: container APIs * chore: handle runtime mode * chore: render slots * more prototyping * Adding a changeset * fix some weirdness around types * feat: allow to inject the manifest * feat: accept a manifest * more APIs * add `route` to the options * chore * fix component instance * chore: document stuff * remove commented code * chore: add test for renderers and fixed its types * fix: update name of the example * fix regression inside tests * use `experimental_` * remove errors * need to understand the types here * remove some options that I don't deem necessary for this phase * remove superfluous comments * chore: remove useless `@ts-ignore` directive * chore: address feedback * fix regression and remove astro config * chore: fix regression * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * ooops * restore changes --------- Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
11 lines
776 B
Markdown
11 lines
776 B
Markdown
# Astro + [Vitest](https://vitest.dev/) + Container API Example
|
|
|
|
```sh
|
|
npm create astro@latest -- --template container-with-vitest
|
|
```
|
|
|
|
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/with-vitest)
|
|
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/with-vitest)
|
|
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/with-vitest/devcontainer.json)
|
|
|
|
This example showcases Astro working with [Vitest](https://vitest.dev/) and how to test components using the Container API.
|