vitest-environment-native-dom
v0.0.10
Published
Vitest environment package name for native-dom.
Readme
vitest-environment-native-dom
Vitest environment package for native-dom.
Vitest resolves custom environment names by loading a package named vitest-environment-${name}. This package is the adapter that lets projects configure environment: "native-dom" while the implementation lives in @native-dom/vitest.
Usage
// vitest.config.ts
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "native-dom"
}
});Install this package with the runtime:
pnpm add -D vitest-environment-native-dom @native-dom/runtimeDevelopment
pnpm --filter vitest-environment-native-dom build
pnpm --filter vitest-environment-native-dom typecheck
pnpm --filter vitest-environment-native-dom test