Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fdodino committed Dec 2, 2023
1 parent 5eb7659 commit f7769ce
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
15 changes: 15 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"compilerOptions": {
"baseUrl": ".",
"checkJs": false,
"jsx": "react-jsx",
"paths": {
"src/*": [
"./src/*"
],
"components/*": [
"./src/components/*"
]
}
}
}
8 changes: 7 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
src: '/src',
components: '/src/components',
},
},
test: {
globals: true,
setupFiles: ['./setupTests.js'],
setupFiles: ["./setupTests.js"],
environment: 'jsdom',
coverage: {
reporter: ['text', 'json', 'html', 'json-summary'],
Expand Down

0 comments on commit f7769ce

Please sign in to comment.