Skip to content

Commit

Permalink
Disable hmr in testing
Browse files Browse the repository at this point in the history
  • Loading branch information
JackWilb committed Feb 8, 2024
1 parent e6bdfbb commit 069ece2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/app/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default defineConfig(() => {
plugins: [
react(),
],
optimizeDeps: { exclude: [] }
optimizeDeps: { exclude: [] },
server: { hmr: process.env.NODE_TESTING !== 'true' },
};
});
1 change: 1 addition & 0 deletions packages/core/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default defineConfig({
root: '../../',
}),
],
server: { hmr: process.env.NODE_TESTING !== 'true' },

// Configuration for building your library.
// See: https://vitejs.dev/guide/build.html#library-mode
Expand Down
1 change: 1 addition & 0 deletions packages/upset/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default defineConfig({
root: '../../',
}),
],
server: { hmr: process.env.NODE_TESTING !== 'true' },

// Configuration for building your library.
// See: https://vitejs.dev/guide/build.html#library-mode
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default defineConfig({

/* Run your local dev server before starting the tests */
webServer: {
command: 'yarn dev',
command: 'NODE_TESTING=true yarn dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
stdout: 'ignore',
Expand Down

0 comments on commit 069ece2

Please sign in to comment.