Skip to content

Commit 99afd3e

Browse files
committed
Package updates
1 parent c7a99fb commit 99afd3e

File tree

4 files changed

+425
-973
lines changed

4 files changed

+425
-973
lines changed

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
},
2020
"dependencies": {
2121
"@intlify/core-base": "^11.1.12",
22-
"@rails/actioncable": "^8.0.300",
23-
"@sentry/vue": "^10.18.0",
24-
"@vuepic/vue-datepicker": "^11.0.2",
22+
"@rails/actioncable": "^8.1.100",
23+
"@sentry/vue": "^10.22.0",
24+
"@vuepic/vue-datepicker": "^11.0.3",
2525
"date-fns": "^4.1.0",
2626
"is-touch-device": "^1.0.1",
2727
"lodash-es": "^4.17.21",
@@ -32,56 +32,56 @@
3232
"tslib": "^2.8.1",
3333
"vue": "^3.5.22",
3434
"vue-i18n": "^11.1.12",
35-
"vue-router": "^4.5.1"
35+
"vue-router": "^4.6.3"
3636
},
3737
"devDependencies": {
3838
"@flydotio/dockerfile": "^0.7.10",
3939
"@pinia/testing": "^1.0.2",
40-
"@rushstack/eslint-patch": "^1.13.0",
40+
"@rushstack/eslint-patch": "^1.14.1",
4141
"@testing-library/cypress": "^10.1.0",
4242
"@testing-library/vue": "^8.1.0",
4343
"@tsconfig/node22": "^22.0.2",
4444
"@types/is-touch-device": "^1.0.3",
4545
"@types/jsdom": "^27.0.0",
4646
"@types/lodash-es": "^4.17.12",
4747
"@types/luxon": "^3.7.1",
48-
"@types/node": "^24.7.0",
49-
"@types/rails__actioncable": "^6.1.11",
48+
"@types/node": "^24.9.2",
49+
"@types/rails__actioncable": "^8.0.3",
5050
"@types/setimmediate": "^1.0.4",
51-
"@typescript-eslint/utils": "^8.46.0",
51+
"@typescript-eslint/utils": "^8.46.2",
5252
"@vitejs/plugin-vue": "^6.0.1",
53-
"@vitest/eslint-plugin": "^1.3.16",
53+
"@vitest/eslint-plugin": "^1.4.0",
5454
"@vue/compiler-dom": "^3.5.22",
5555
"@vue/eslint-config-prettier": "^10.2.0",
5656
"@vue/eslint-config-typescript": "^14.6.0",
5757
"@vue/server-renderer": "^3.5.22",
5858
"@vue/test-utils": "^2.4.6",
5959
"@vue/tsconfig": "^0.8.1",
60-
"cypress": "^15.4.0",
60+
"cypress": "^15.5.0",
6161
"cypress-vite": "^1.8.0",
62-
"eslint": "^9.37.0",
62+
"eslint": "^9.38.0",
6363
"eslint-plugin-cypress": "^5.2.0",
64-
"eslint-plugin-vue": "^10.5.0",
65-
"jsdom": "^27.0.0",
64+
"eslint-plugin-vue": "^10.5.1",
65+
"jsdom": "^27.1.0",
6666
"npm-run-all2": "^8.0.4",
67-
"postal-mime": "^2.5.0",
67+
"postal-mime": "^2.6.0",
6868
"postcss": "^8.5.6",
6969
"postcss-html": "^1.8.0",
7070
"prettier": "^3.6.2",
7171
"sass": "^1.93.2",
7272
"setimmediate": "^1.0.5",
7373
"start-server-and-test": "^2.1.2",
7474
"stylelint": "^16.25.0",
75-
"stylelint-config-recess-order": "^7.3.0",
75+
"stylelint-config-recess-order": "^7.4.0",
7676
"stylelint-config-recommended-scss": "^16.0.2",
7777
"stylelint-config-recommended-vue": "^1.6.1",
7878
"stylelint-config-standard-scss": "^16.0.0",
7979
"stylelint-order": "^7.0.0",
8080
"typescript": "^5.9.3",
81-
"vite": "^7.1.9",
82-
"vite-plugin-vue-devtools": "^8.0.2",
83-
"vitest": "^3.2.4",
81+
"vite": "^7.1.12",
82+
"vite-plugin-vue-devtools": "^8.0.3",
83+
"vitest": "^4.0.5",
8484
"vue-eslint-parser": "^10.2.0",
85-
"vue-tsc": "^3.1.1"
85+
"vue-tsc": "^3.1.2"
8686
}
8787
}

vitest.config.ts

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
import { fileURLToPath } from 'node:url'
2-
import { configDefaults, defineConfig, mergeConfig } from 'vitest/config'
3-
import viteConfig from './vite.config'
1+
import { fileURLToPath, URL } from 'node:url'
2+
import { configDefaults, defineConfig } from 'vitest/config'
3+
import vue from '@vitejs/plugin-vue'
44

5-
export default mergeConfig(
6-
viteConfig,
7-
defineConfig({
8-
test: {
9-
environment: 'jsdom',
10-
exclude: [...configDefaults.exclude, 'e2e/**'],
11-
root: fileURLToPath(new URL('./', import.meta.url))
5+
export default defineConfig({
6+
plugins: [vue()],
7+
resolve: {
8+
alias: {
9+
'@': fileURLToPath(new URL('./src', import.meta.url))
1210
}
13-
})
14-
)
11+
},
12+
test: {
13+
environment: 'jsdom',
14+
exclude: [...configDefaults.exclude, 'e2e/**'],
15+
root: fileURLToPath(new URL('./', import.meta.url)),
16+
setupFiles: ['./vitest.setup.ts']
17+
}
18+
})

vitest.setup.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Setup file for Vitest
2+
// This ensures localStorage is properly available in the test environment
3+
4+
// Ensure localStorage has all required methods before any modules load
5+
const localStorageMock = (() => {
6+
let store: Record<string, string> = {}
7+
8+
return {
9+
getItem: (key: string) => store[key] || null,
10+
setItem: (key: string, value: string) => {
11+
store[key] = value.toString()
12+
},
13+
removeItem: (key: string) => {
14+
delete store[key]
15+
},
16+
clear: () => {
17+
store = {}
18+
},
19+
get length() {
20+
return Object.keys(store).length
21+
},
22+
key: (index: number) => {
23+
const keys = Object.keys(store)
24+
return keys[index] || null
25+
}
26+
}
27+
})()
28+
29+
// Override localStorage completely
30+
Object.defineProperty(globalThis, 'localStorage', {
31+
value: localStorageMock,
32+
writable: true,
33+
configurable: true
34+
})

0 commit comments

Comments
 (0)