-
Notifications
You must be signed in to change notification settings - Fork 56
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 vinxi test
#174
Comments
Yeah okay let me put my ideas down and I think I probably need your help sifting through them. Approach 1: I expose a eg. // @test-runner vitest
// @test-env ssr
import {} from "vinxi/test" // @test-runner playwright
import {} from "vinxi/test" Approach 2: I expose a import { defineVitestConfig } from "vinxi/test"
import app from './app.config.js'
export default defineVitestConfig(app) |
Let me add a few thoughts:
|
Currently, testing needs to be set up manually, since we use the vite config for our own configuration, which does not really work with vitest. It would also be useful to be able to configure which parts of the system should be available during testing (static assets, ssr, client, etc.). In order to do this, we should also wrap vitest (as the preferred way to test vinxi apps and optional peer dependency) in a
vinxi test
cli functionality.The text was updated successfully, but these errors were encountered: