We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b435ab commit 9e3181bCopy full SHA for 9e3181b
index.html renamed to src/demo/index.html
@@ -7,6 +7,6 @@
7
</head>
8
<body style="max-width: 600px; margin: 0 auto">
9
<div id="root"></div>
10
- <script type="module" src="/src/demo/main.tsx"></script>
+ <script type="module" src="main.tsx"></script>
11
</body>
12
</html>
vite.config.ts
@@ -3,7 +3,9 @@ import react from "@vitejs/plugin-react";
3
4
export default defineConfig({
5
plugins: [react()],
6
+ root: "src/demo",
test: {
+ root: ".",
environment: "jsdom",
globals: true,
setupFiles: ["./vitest-setup.js"],
0 commit comments