mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-07 04:09:17 +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": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
|
||||||
"lint-no-fix": "eslint --ext .js,.vue --ignore-path .gitignore src",
|
"lint-no-fix": "eslint --ext .js,.vue --ignore-path .gitignore src",
|
||||||
"format": "prettier . --write",
|
"format": "prettier . --write",
|
||||||
"test": "vitest"
|
"test": "vitest --config vitest.config.ts"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fullcalendar/core": "^6.1.13",
|
"@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