This commit is contained in:
Javier Segarra 2024-05-28 11:38:09 +02:00
parent da39100865
commit 112f33fb1b
8 changed files with 28 additions and 12 deletions

View File

@ -22,6 +22,7 @@ module.exports = defineConfig({
},
component: {
specPattern: 'test/cypress/components/*.spec.js',
devServer: {
framework: 'vue',
bundler: 'vite',

View File

@ -4,8 +4,8 @@ import { useI18n } from 'vue-i18n';
import VnInput from 'src/components/common/VnInput.vue';
import VnSelect from 'src/components/common/VnSelect.vue';
import FetchData from 'components/FetchData.vue';
import VnRow from 'components/ui/VnRow.vue';
import FetchData from 'src/components/FetchData.vue';
import VnRow from 'src/components/ui/VnRow.vue';
import FormModelPopup from './FormModelPopup.vue';
defineProps({ showEntityField: { type: Boolean, default: true } });

View File

@ -5,10 +5,10 @@ import { onBeforeRouteLeave } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { useQuasar } from 'quasar';
import { useState } from 'src/composables/useState';
import { useStateStore } from 'stores/useStateStore';
import { useStateStore } from 'src/stores/useStateStore';
import { useValidator } from 'src/composables/useValidator';
import useNotify from 'src/composables/useNotify.js';
import SkeletonForm from 'components/ui/SkeletonForm.vue';
import SkeletonForm from 'src/components/ui/SkeletonForm.vue';
import VnConfirm from './ui/VnConfirm.vue';
import { tMobile } from 'src/composables/tMobile';

View File

@ -2,7 +2,7 @@
import { ref, computed } from 'vue';
import { useI18n } from 'vue-i18n';
import FormModel from 'components/FormModel.vue';
import FormModel from 'src/components/FormModel.vue';
const emit = defineEmits(['onDataSaved']);

View File

@ -0,0 +1,8 @@
import CreateBankEntityForm from 'src/components/CreateBankEntityForm.vue';
describe('<CreateBankEntityForm />', () => {
it('renders', () => {
// see: https://on.cypress.io/mounting-vue
cy.mount(CreateBankEntityForm);
});
});

View File

@ -0,0 +1,8 @@
import VnSelect from 'src/components/common/VnSelect.vue';
describe('<VnSelect />', () => {
it('renders', () => {
// see: https://on.cypress.io/mounting-vue
cy.mount(VnSelect);
});
});

View File

@ -1,4 +1,4 @@
import VnTitle from '@/components/common/VnTitle.vue';
import VnTitle from 'src/components/common/VnTitle.vue';
describe('<VnTitle />', () => {
it('renders', () => {
@ -7,8 +7,7 @@ describe('<VnTitle />', () => {
props: {
url: 'url',
title: 'title',
}
},
});
console.log(VnTitle);
});

View File

@ -8,7 +8,7 @@ export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
src: fileURLToPath(new URL('./src', import.meta.url)),
},
},
});