🔧 test environment setup updated
This commit is contained in:
parent
717c5f8e6e
commit
80e2c6e358
|
@ -1,10 +1,10 @@
|
||||||
import { fileURLToPath, URL } from 'node:url'
|
// vite.config.ts
|
||||||
import { defineConfig } from 'vitest/config'
|
import { fileURLToPath, URL } from 'node:url';
|
||||||
import vue from '@vitejs/plugin-vue'
|
import { defineConfig } from 'vite';
|
||||||
import vueDevTools from 'vite-plugin-vue-devtools'
|
import vue from '@vitejs/plugin-vue';
|
||||||
import path from 'path'
|
import vueDevTools from 'vite-plugin-vue-devtools';
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
// https://vite.dev/config/
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
|
@ -13,12 +13,23 @@ export default defineConfig({
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||||
'@visua': path.resolve(__dirname, './node_modules/@cellule-financiere-pmo/visua/output')
|
'@visua': path.resolve(__dirname, './node_modules/@cellule-financiere-pmo/visua/output'),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
test: {
|
build: {
|
||||||
globals: true,
|
lib: {
|
||||||
environment: 'jsdom',
|
entry: path.resolve(__dirname, 'src/index.ts'),
|
||||||
include: ['test/**/*.spec.ts'],
|
name: 'VisuaVue',
|
||||||
}
|
fileName: 'visua-vue',
|
||||||
})
|
formats: ['es', 'umd'],
|
||||||
|
},
|
||||||
|
rollupOptions: {
|
||||||
|
external: ['vue'],
|
||||||
|
output: {
|
||||||
|
globals: {
|
||||||
|
vue: 'Vue',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user