Skip to content

Commit

Permalink
chore: upgrades deps
Browse files Browse the repository at this point in the history
- upgraded vitest to latest version and upgraded conf format
  • Loading branch information
baldoalessandro committed Nov 6, 2023
1 parent a2a8254 commit bb74303
Show file tree
Hide file tree
Showing 3 changed files with 923 additions and 1,456 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
},
"license": " AGPL-3.0-or-later",
"devDependencies": {
"@solidjs/testing-library": "^0.7.1",
"@testing-library/jest-dom": "^5.16.5",
"@solidjs/testing-library": "^0.8.4",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/user-event": "^14.5.1",
"@types/testing-library__jest-dom": "^5.14.6",
"@types/testing-library__jest-dom": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"eslint": "^8.49.0",
Expand All @@ -33,12 +33,12 @@
"jsdom": "^22.1.0",
"lint-staged": ">=10",
"prettier": "3.0.3",
"solid-devtools": "^0.27.3",
"solid-devtools": "^0.28.1",
"typescript": "^5.1.3",
"vite": "^4.3.9",
"vite-plugin-pwa": "^0.16.5",
"vite-plugin-solid": "^2.7.0",
"vitest": "^0.32.2"
"vitest": "^0.34.6"
},
"dependencies": {
"array-shuffle": "^3.0.0",
Expand Down
11 changes: 8 additions & 3 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,14 @@ export default defineConfig(({ mode }) => {
environment: "jsdom",
globals: true,
transformMode: { web: [/\.[jt]sx?$/] },
setupFiles: ["node_modules/@testing-library/jest-dom/extend-expect.js"],
// otherwise, solid would be loaded twice:
deps: { registerNodeLoader: true },
setupFiles: ["node_modules/@testing-library/jest-dom/vitest"],
deps: {
optimizer: {
web: {
exclude: ["solid-js"],
},
},
},
// if you have few tests, try commenting one
// or both out to improve performance:
threads: false,
Expand Down
Loading

0 comments on commit bb74303

Please sign in to comment.