astro/examples/with-vitest
Nate Moore 36223f663e
Add getViteConfig helper (#4154)
* feat: add astro/compat entrypoint for vitest

* chore: add with-vitest example

* chore: add vitest as optional peer dependency

* chore: update lockfile

* refactor: remove astro/compat, use astro/config

* feat: allow arbitrary modes for `create-vite`

* feat: pass vite mode and command when using `getViteConfig`

* chore: remove vitest from peer deps

* chore: add changeset

* chore: update lockfile

Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 14:41:01 -05:00
..
public Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
src/pages Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
test Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
.gitignore Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
.npmrc Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
.stackblitzrc Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
astro.config.ts Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
package.json Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
README.md Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
sandbox.config.json Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
tsconfig.json Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00
vitest.config.ts Add getViteConfig helper (#4154) 2022-08-05 14:41:01 -05:00

Astro + Vitest Example

npm init astro -- --template with-vitest

Open in StackBlitz

This example showcases Astro working with Vitest.