primevue-mirror/vitest.config.js

47 lines
3.2 KiB
JavaScript
Raw Normal View History

2022-09-12 10:35:24 +00:00
import vue from '@vitejs/plugin-vue';
2022-09-14 14:26:41 +00:00
import path from 'path';
2022-09-12 10:35:24 +00:00
export default {
2022-09-14 14:26:41 +00:00
plugins: [vue()],
test: {
globals: true,
2022-12-22 19:47:28 +00:00
environment: 'jsdom',
coverage: {
provider: 'istanbul',
reporter: ['text', 'json', 'html']
}
2022-09-14 14:26:41 +00:00
},
resolve: {
alias: {
'primevue/config': path.resolve(__dirname, './components/lib/config/PrimeVue.js'),
'primevue/ripple': path.resolve(__dirname, './components/lib/ripple/Ripple.js'),
'primevue/tooltip': path.resolve(__dirname, './components/lib/tooltip/Tooltip.js'),
'primevue/focustrap': path.resolve(__dirname, './components/lib/focustrap/FocusTrap.js'),
'primevue/useconfirm': path.resolve(__dirname, './components/lib/useconfirm/UseConfirm.js'),
'primevue/usetoast': path.resolve(__dirname, './components/lib/usetoast/UseToast.js'),
'primevue/usedialog': path.resolve(__dirname, './components/lib/usedialog/UseDialog.js'),
'primevue/utils': path.resolve(__dirname, './components/lib/utils/Utils.js'),
'primevue/api': path.resolve(__dirname, './components/lib/api/Api.js'),
'primevue/portal': path.resolve(__dirname, './components/lib/portal/Portal.vue'),
2023-03-21 12:05:24 +00:00
'primevue/base': path.resolve(__dirname, './components/base/ComponentBase.vue'),
'primevue/button': path.resolve(__dirname, './components/lib/button/Button.vue'),
'primevue/inputtext': path.resolve(__dirname, './components/lib/inputtext/InputText.vue'),
'primevue/dialog': path.resolve(__dirname, './components/lib/dialog/Dialog.vue'),
'primevue/menu': path.resolve(__dirname, './components/lib/menu/Menu.vue'),
'primevue/tieredmenu': path.resolve(__dirname, './components/lib/tieredmenu/TieredMenu.vue'),
'primevue/dropdown': path.resolve(__dirname, './components/lib/dropdown/Dropdown.vue'),
'primevue/inputnumber': path.resolve(__dirname, './components/lib/inputnumber/InputNumber.vue'),
'primevue/paginator': path.resolve(__dirname, './components/lib/paginator/Paginator.vue'),
'primevue/progressbar': path.resolve(__dirname, './components/lib/progressbar/ProgressBar.vue'),
'primevue/message': path.resolve(__dirname, './components/lib/message/Message.vue'),
'primevue/tree': path.resolve(__dirname, './components/lib/tree/Tree.vue'),
'primevue/confirmationeventbus': path.resolve(__dirname, './components/lib/confirmationeventbus/ConfirmationEventBus.js'),
'primevue/toasteventbus': path.resolve(__dirname, './components/lib/toasteventbus/ToastEventBus.js'),
'primevue/overlayeventbus': path.resolve(__dirname, './components/lib/overlayeventbus/OverlayEventBus.js'),
'primevue/terminalservice': path.resolve(__dirname, './components/lib/terminalservice/TerminalService.js'),
'primevue/dynamicdialogeventbus': path.resolve(__dirname, './components/lib/dynamicdialogeventbus/DynamicDialogEventBus.js'),
'primevue/virtualscroller': path.resolve(__dirname, './components/lib/virtualscroller/VirtualScroller.vue')
2022-09-14 14:26:41 +00:00
}
}
};