Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Oct 20, 2023
1 parent a128f76 commit 4807325
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 10 deletions.
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"classnames": "^2.3.1",
"connected-react-router": "^6.9.2",
"date-fns": "^2.28.0",
"deep-object-diff": "^1.1.9",
"file-saver": "^2.0.5",
"marked": "^4.1.0",
"mousetrap": "1.6.5",
Expand Down
10 changes: 0 additions & 10 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ export default defineConfig({
build: {
chunkSizeWarningLimit: 2000,
},

test: {
globals: true,

browser: {
name: 'chrome', // browser name is required,

slowHijackESM: false
},
},

plugins: [react({})],
});
26 changes: 26 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import path from 'path';
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';

// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'@app': path.resolve(__dirname, './src/')
}
},

define: {
__REACT_DEVTOOLS_GLOBAL_HOOK__: { isDisabled: true }
},

test: {
globals: true,

browser: {
name: 'chrome', // browser name is required,

slowHijackESM: false
},
},
});

0 comments on commit 4807325

Please sign in to comment.