Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"test": "vitest"
"test": "vitest run"
},
"dependencies": {
"solid-js": "^1.9.5"
Expand Down
14 changes: 4 additions & 10 deletions vite.config.js → vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,12 @@ export default defineConfig({
sourcemap: "inline",
target: "esnext"
},
define: {
// required if u have: `process is undefined`
// while loading react jsoncomponents
"process.env": {},
},
test: {
include: ["**/*.{test,spec}.{js,jsx,ts,tsx,fs}"],
exclude: [...configDefaults.exclude, "dist", ".idea", ".git", ".cache"],
environment: "jsdom",
transform: {
"^.+\\.fs$": "vite-plugin-fable",
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jest transform is not needed when using vitest and all works correctly

},
conditions: ["development", "browser"]
},
server: {
deps: { inline: true }
}
}
});
15 changes: 0 additions & 15 deletions vitest.config.ts

This file was deleted.