mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-07-16 09:38:51 +02:00
fix:#3 added process timezone for tests
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
|
||||
"lint-no-fix": "eslint --ext .js,.vue --ignore-path .gitignore src",
|
||||
"format": "prettier . --write",
|
||||
"test": "vitest"
|
||||
"test": "vitest --config vitest.config.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fullcalendar/core": "^6.1.13",
|
||||
|
11
frontend/vitest.config.ts
Normal file
11
frontend/vitest.config.ts
Normal file
@ -0,0 +1,11 @@
|
||||
// vitest.config.ts
|
||||
import {mergeConfig} from 'vite'
|
||||
import {defineConfig} from 'vitest/config'
|
||||
import viteConfig from './vite.config'
|
||||
|
||||
export default mergeConfig(viteConfig, defineConfig({
|
||||
test: {
|
||||
globals: true,
|
||||
globalSetup: './vitest.global-setup.ts',
|
||||
},
|
||||
}))
|
3
frontend/vitest.global-setup.ts
Normal file
3
frontend/vitest.global-setup.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export const setup = () => {
|
||||
process.env.TZ = 'UTC'
|
||||
}
|
Reference in New Issue
Block a user