Skip to content

Commit

Permalink
Fix: testではElectronを起動しないように
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Apr 13, 2024
1 parent 0806e22 commit 7c0e4cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ export default defineConfig((options) => {
"./src/backend/electron/main.ts",
"./src/backend/electron/preload.ts",
],
onstart: ({ startup }) => {
if (options.mode !== "test") {
startup([".", "--no-sandbox"]);
}
},
vite: {
plugins: [tsconfigPaths({ root: __dirname })],
build: {
Expand Down

0 comments on commit 7c0e4cc

Please sign in to comment.