Skip to content
Snippets Groups Projects
Commit c762edf3 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: load test env prior to executing tests

parent 0985e4e3
No related branches found
No related tags found
No related merge requests found
Pipeline #7189 failed
......@@ -135,7 +135,7 @@ test-local-playwright: $(DIR_DIST)
.PHONY: test-local-vitest
test-local-vitest: node_modules
npm run test -- --run
(set -a && . vitest/env && npm run test -- --run --isolate)
.PHONY: test-local
test-local: test-local-playwright test-local-vitest
......
import { defineConfig } from 'vitest/config'
import path from 'path'
import { defineConfig, mergeConfig } from 'vitest/config'
import viteConfig from './vite.config'
export default defineConfig({
resolve: {
alias: {
vue: '@vue/compat',
'@': path.resolve(__dirname, 'src'),
},
},
const vitestConfig = defineConfig({
test: {
environment: 'happy-dom',
include: ['src/**/*.{test,spec}.ts', 'vitest/**/*.{test,spec}.ts'],
},
})
export default mergeConfig(viteConfig, vitestConfig)
VUE_APP_BASEURI_STEERING=http://127.0.0.1:8000
VUE_APP_API_STEERING=http://127.0.0.1:8000/api/v1/
VUE_APP_API_TANK=http://127.0.0.1:8040/api/v1/
VUE_APP_TANK=http://127.0.0.1:8040/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment