fix:#3 added process timezone for tests

This commit is contained in:
Elmar Kresse
2024-06-03 10:27:38 +02:00
parent e8974758bd
commit a26a592ed7
3 changed files with 15 additions and 1 deletions

View File

@ -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
View 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',
},
}))

View File

@ -0,0 +1,3 @@
export const setup = () => {
process.env.TZ = 'UTC'
}