diff --git a/dist/data/gitignore/vilt-ds-developer-gitignore.d.ts b/dist/data/gitignore/vilt-ds-developer-gitignore.d.ts index b7fcf7f0..062adccd 100644 --- a/dist/data/gitignore/vilt-ds-developer-gitignore.d.ts +++ b/dist/data/gitignore/vilt-ds-developer-gitignore.d.ts @@ -1,2 +1,2 @@ -declare const _default: "# NPM Remote Credentials File\n.npmrc\n\n# Local Project Items\n.vscode\n.idea\n.well-known\n.htpasswd\nerror_log"; +declare const _default: "# NPM Remote Credentials File\n.npmrc\n\n# Vitest testing coverage\ncoverage\n\n# Local Project Items\n.vscode\n.idea\n.well-known\n.htpasswd\nerror_log"; export default _default; diff --git a/dist/data/gitignore/vilt-ds-developer-gitignore.js b/dist/data/gitignore/vilt-ds-developer-gitignore.js index 449e246f..d83867a6 100644 --- a/dist/data/gitignore/vilt-ds-developer-gitignore.js +++ b/dist/data/gitignore/vilt-ds-developer-gitignore.js @@ -2,6 +2,9 @@ export default `# NPM Remote Credentials File .npmrc +# Vitest testing coverage +coverage + # Local Project Items .vscode .idea diff --git a/dist/data/gitignore/vilt-ds-developer-gitignore.js.map b/dist/data/gitignore/vilt-ds-developer-gitignore.js.map index ff1fd148..c19a5be9 100644 --- a/dist/data/gitignore/vilt-ds-developer-gitignore.js.map +++ b/dist/data/gitignore/vilt-ds-developer-gitignore.js.map @@ -1 +1 @@ -{"version":3,"file":"vilt-ds-developer-gitignore.js","sourceRoot":"","sources":["../../../src/data/gitignore/vilt-ds-developer-gitignore.ts"],"names":[],"mappings":"AAAA,sDAAsD;AAEtD,eAAe;;;;;;;;UAQL,CAAA"} \ No newline at end of file +{"version":3,"file":"vilt-ds-developer-gitignore.js","sourceRoot":"","sources":["../../../src/data/gitignore/vilt-ds-developer-gitignore.ts"],"names":[],"mappings":"AAAA,sDAAsD;AAEtD,eAAe;;;;;;;;;;;UAWL,CAAA"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.js new file mode 100644 index 00000000..85e48c8b --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.ts +export default function () { + return `// ./tests/Components/ActionSection.test.ts + +import { mount } from '@vue/test-utils' +import ActionSection from '../../../resources/js/Components/ActionSection.vue' + + +test('ActionSection.vue component imports successfully', async () => { + + expect(ActionSection).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-action-section-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.js.map new file mode 100644 index 00000000..1ea4da72 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-action-section-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.ts"],"names":[],"mappings":"AAAA,wFAAwF;AAExF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.js new file mode 100644 index 00000000..d33aa1b2 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.ts +export default function () { + return `// ./tests/Components/ApplicationLogo.test.js + +import { mount } from '@vue/test-utils' +import ApplicationLogo from '../../../resources/js/Components/ApplicationLogo.vue' + + +test('ApplicationLogo.vue component imports successfully', async () => { + + expect(ApplicationLogo).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-application-logo-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.js.map new file mode 100644 index 00000000..8c67f1f2 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-application-logo-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAE1F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.js new file mode 100644 index 00000000..6302b839 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.ts +export default function () { + return `// ./tests/Components/ApplicationMark.test.ts + +import { mount } from '@vue/test-utils' +import ApplicationMark from '../../../resources/js/Components/ApplicationMark.vue' + + +test('ApplicationMark.vue component imports successfully', async () => { + + expect(ApplicationMark).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-application-mark-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.js.map new file mode 100644 index 00000000..f0f65a3c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-application-mark-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAE1F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.js new file mode 100644 index 00000000..3834f5f4 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.ts +export default function () { + return `// ./tests/Components/AuthenticationCardLogo.test.ts + +import { mount } from '@vue/test-utils' +import AuthenticationCardLogo from '../../../resources/js/Components/AuthenticationCardLogo.vue' + + +test('AuthenticationCardLogo.vue component imports successfully', async () => { + + expect(AuthenticationCardLogo).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-authentication-card-logo-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.js.map new file mode 100644 index 00000000..209fa875 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-authentication-card-logo-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAElG,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.js new file mode 100644 index 00000000..78aeae63 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.ts +export default function () { + return `// ./tests/Components/AuthenticationCard.test.ts + +import { mount } from '@vue/test-utils' +import AuthenticationCard from '../../../resources/js/Components/AuthenticationCard.vue' + + +test('AuthenticationCard.vue component imports successfully', async () => { + + expect(AuthenticationCard).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-authentication-card-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.js.map new file mode 100644 index 00000000..264b897e --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-authentication-card-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAE7F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.js new file mode 100644 index 00000000..b93e94a1 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.ts +export default function () { + return `// ./tests/Components/Banner.test.ts + +import { mount } from '@vue/test-utils' +import Banner from '../../../resources/js/Components/Banner.vue' + + +test('Banner.vue component imports successfully', async () => { + + expect(Banner).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-banner-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.js.map new file mode 100644 index 00000000..f7c9125b --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-banner-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAEhF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.js new file mode 100644 index 00000000..7bee9b6c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.ts +export default function () { + return `// ./tests/Components/Checkbox.test.ts + +import { mount } from '@vue/test-utils' +import Checkbox from '../../../resources/js/Components/Checkbox.vue' + + +test('Checkbox.vue component imports successfully', async () => { + + expect(Checkbox).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-checkbox-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.js.map new file mode 100644 index 00000000..c4a49138 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-checkbox-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAElF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.js new file mode 100644 index 00000000..1f2ff939 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.ts +export default function () { + return `// ./tests/Components/ConfirmationModal.test.ts + +import { mount } from '@vue/test-utils' +import ConfirmationModal from '../../../resources/js/Components/ConfirmationModal.vue' + + +test('ConfirmationModal.vue component imports successfully', async () => { + + expect(ConfirmationModal).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-confirmation-modal-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.js.map new file mode 100644 index 00000000..2e6e9222 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-confirmation-modal-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAE5F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.js new file mode 100644 index 00000000..9a0725f7 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.ts +export default function () { + return `// ./tests/Components/ConfirmsPassword.test.ts + +import { mount } from '@vue/test-utils' +import ConfirmsPassword from '../../../resources/js/Components/ConfirmsPassword.vue' + + +test('ConfirmsPassword.vue component imports successfully', async () => { + + expect(ConfirmsPassword).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-confirmation-password-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.js.map new file mode 100644 index 00000000..47883d7b --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-confirmation-password-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.js new file mode 100644 index 00000000..74e32196 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.ts +export default function () { + return `// ./tests/Components/DangerButton.test.ts + +import { mount } from '@vue/test-utils' +import DangerButton from '../../../resources/js/Components/DangerButton.vue' + + +test('DangerButton.vue component imports successfully', async () => { + + expect(DangerButton).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-danger-button-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.js.map new file mode 100644 index 00000000..e32e538c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-danger-button-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.ts"],"names":[],"mappings":"AAAA,uFAAuF;AAEvF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.js new file mode 100644 index 00000000..b94f7c26 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.ts +export default function () { + return `// ./tests/Components/DialogModal.test.ts + +import { mount } from '@vue/test-utils' +import DialogModal from '../../../resources/js/Components/DialogModal.vue' + + +test('DialogModal.vue component imports successfully', async () => { + + expect(DialogModal).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-dialog-modal-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.js.map new file mode 100644 index 00000000..2120936a --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-dialog-modal-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.js new file mode 100644 index 00000000..68742343 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.ts +export default function () { + return `// ./tests/Components/DropdownLink.test.ts + +import { mount } from '@vue/test-utils' +import DropdownLink from '../../../resources/js/Components/DropdownLink.vue' + + +test('DropdownLink.vue component imports successfully', async () => { + + expect(DropdownLink).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-dropdown-link-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.js.map new file mode 100644 index 00000000..03721806 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-dropdown-link-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.ts"],"names":[],"mappings":"AAAA,uFAAuF;AAEvF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.js new file mode 100644 index 00000000..7b3ad7cf --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.ts +export default function () { + return `// ./tests/Components/Dropdown.test.ts + +import { mount } from '@vue/test-utils' +import Dropdown from '../../../resources/js/Components/Dropdown.vue' + + +test('Dropdown.vue component imports successfully', async () => { + + expect(Dropdown).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-dropdown-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.js.map new file mode 100644 index 00000000..b0651ac0 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-dropdown-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAElF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.js new file mode 100644 index 00000000..6b65e078 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.ts +export default function () { + return `// ./tests/Components/FormSection.test.ts + +import { mount } from '@vue/test-utils' +import FormSection from '../../../resources/js/Components/FormSection.vue' + + +test('FormSection.vue component imports successfully', async () => { + + expect(FormSection).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-form-section-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.js.map new file mode 100644 index 00000000..109aa20c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-form-section-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.js new file mode 100644 index 00000000..64abc79f --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.ts +export default function () { + return `// ./tests/Components/InputError.test.ts + +import { mount } from '@vue/test-utils' +import InputError from '../../../resources/js/Components/InputError.vue' + + +test('InputError.vue component imports successfully', async () => { + + expect(InputError).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-input-error-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.js.map new file mode 100644 index 00000000..092a47aa --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-input-error-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.js new file mode 100644 index 00000000..1d0a2127 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.ts +export default function () { + return `// ./tests/Components/InputLabel.test.ts + +import { mount } from '@vue/test-utils' +import InputLabel from '../../../resources/js/Components/InputLabel.vue' + + +test('InputLabel.vue component imports successfully', async () => { + + expect(InputLabel).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-input-label-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.js.map new file mode 100644 index 00000000..6d12fff3 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-input-label-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.js new file mode 100644 index 00000000..32247d63 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.ts +export default function () { + return `// ./tests/Components/Modal.test.ts + +import { mount } from '@vue/test-utils' +import Modal from '../../../resources/js/Components/Modal.vue' + + +test('Modal.vue component imports successfully', async () => { + + expect(Modal).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-modal-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.js.map new file mode 100644 index 00000000..da44afe6 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-modal-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.js new file mode 100644 index 00000000..0a0830c1 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.ts +export default function () { + return `// ./tests/Components/NavLink.test.ts + +import { mount } from '@vue/test-utils' +import NavLink from '../../../resources/js/Components/NavLink.vue' + + +test('NavLink.vue component imports successfully', async () => { + + expect(NavLink).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-nav-link-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.js.map new file mode 100644 index 00000000..c871699b --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-nav-link-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAElF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.js new file mode 100644 index 00000000..fdc17bc6 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.ts +export default function () { + return `// ./tests/Components/PrimaryButton.test.ts + +import { mount } from '@vue/test-utils' +import PrimaryButton from '../../../resources/js/Components/PrimaryButton.vue' + + +test('PrimaryButton.vue component imports successfully', async () => { + + expect(PrimaryButton).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-primary-button-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.js.map new file mode 100644 index 00000000..0ad80d35 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-primary-button-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.ts"],"names":[],"mappings":"AAAA,wFAAwF;AAExF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.js new file mode 100644 index 00000000..11e0f1d2 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.ts +export default function () { + return `// ./tests/Components/ResponsiveNavLink.test.ts + +import { mount } from '@vue/test-utils' +import ResponsiveNavLink from '../../../resources/js/Components/ResponsiveNavLink.vue' + + +test('ResponsiveNavLink.vue component imports successfully', async () => { + + expect(ResponsiveNavLink).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-responsive-nav-link-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.js.map new file mode 100644 index 00000000..6a71491b --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-responsive-nav-link-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAE7F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.js new file mode 100644 index 00000000..48dfb7fd --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.ts +export default function () { + return `// ./tests/Components/ScrollUpColorModeSection.test.ts + +import { mount } from '@vue/test-utils' +import ScrollUpColorModeSection from '../../../resources/js/Components/ScrollUpColorModeSection.vue' + + +test('ScrollUpColorModeSection.vue component imports successfully', async () => { + + expect(ScrollUpColorModeSection).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-scroll-up-color-mode-section-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.js.map new file mode 100644 index 00000000..c2baf56f --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-scroll-up-color-mode-section-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.ts"],"names":[],"mappings":"AAAA,sGAAsG;AAEtG,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.js new file mode 100644 index 00000000..4c8eeb91 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.ts +export default function () { + return `// ./tests/Components/SecondaryButton.test.ts + +import { mount } from '@vue/test-utils' +import SecondaryButton from '../../../resources/js/Components/SecondaryButton.vue' + + +test('SecondaryButton.vue component imports successfully', async () => { + + expect(SecondaryButton).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-secondary-button-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.js.map new file mode 100644 index 00000000..0332b7cf --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-secondary-button-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAE1F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.js new file mode 100644 index 00000000..5fb4a7f7 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.ts +export default function () { + return `// ./tests/Components/SectionBorder.test.ts + +import { mount } from '@vue/test-utils' +import SectionBorder from '../../../resources/js/Components/SectionBorder.vue' + + +test('SectionBorder.vue component imports successfully', async () => { + + expect(SectionBorder).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-section-border-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.js.map new file mode 100644 index 00000000..e511c562 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-section-border-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.ts"],"names":[],"mappings":"AAAA,wFAAwF;AAExF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.js new file mode 100644 index 00000000..8e32e538 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.ts +export default function () { + return `// ./tests/Components/SectionTitle.test.ts + +import { mount } from '@vue/test-utils' +import SectionTitle from '../../../resources/js/Components/SectionTitle.vue' + + +test('SectionTitle.vue component imports successfully', async () => { + + expect(SectionTitle).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-section-title-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.js.map new file mode 100644 index 00000000..9cc34f71 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-section-title-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.ts"],"names":[],"mappings":"AAAA,uFAAuF;AAEvF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.js new file mode 100644 index 00000000..d3208045 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.ts +export default function () { + return `// ./tests/Components/TextInput.test.ts + +import { mount } from '@vue/test-utils' +import TextInput from '../../../resources/js/Components/TextInput.vue' + + +test('TextInput.vue component imports successfully', async () => { + + expect(TextInput).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-text-input-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.js.map new file mode 100644 index 00000000..407e23e3 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-text-input-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.ts"],"names":[],"mappings":"AAAA,oFAAoF;AAEpF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.js new file mode 100644 index 00000000..cc6b6233 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.ts +export default function () { + return `// ./tests/Components/Welcome.test.ts + +import { mount } from '@vue/test-utils' +import Welcome from '../../../resources/js/Components/Welcome.vue' + + +test('Welcome.vue component imports successfully', async () => { + + expect(Welcome).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-welcome-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.js.map new file mode 100644 index 00000000..c953619e --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-welcome-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.ts"],"names":[],"mappings":"AAAA,iFAAiF;AAEjF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.js new file mode 100644 index 00000000..e0d5862d --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.js @@ -0,0 +1,87 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.ts +export default function () { + return `// ./tests/Components/vv/anchors/VvAnchor.test.ts + +import { mount } from '@vue/test-utils' +import VvAnchor from '../../../../../resources/js/Components/vv/anchors/VvAnchor.vue' +import appVv from '../../../../../resources/js/app.vv' + + +test('VvAnchor.vue component imports successfully', async () => { + + expect(VvAnchor).toBeTruthy() + +}) + + +test('VvAnchor.vue component accepts a default slot value of markup and text', async () => { + + const testString = "
Test
" + + const wrapper = mount(VvAnchor, { + slots: { + default: testString, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain(testString) + +}) + + +test('VvAnchor.vue component props all work as expected', async () => { + + const wrapper = mount(VvAnchor, { + props: { + button: appVv.defaults.VvAnchor.button, + buttonBlock: appVv.defaults.VvAnchor.buttonBlock, + buttonFab: appVv.defaults.VvAnchor.buttonFab, + buttonSize: appVv.defaults.VvAnchor.buttonSize, + color: appVv.defaults.VvAnchor.color, + external: appVv.defaults.VvAnchor.external, + href: appVv.defaults.VvAnchor.href, + palette: appVv.defaults.VvAnchor.palette, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvAnchor.vue component external mode returns target="_blank" and rel="noopener noreferrer"', async () => { + + const wrapper = mount(VvAnchor, { + props: { + external: true, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvAnchor.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvAnchor, { + props: { + debug: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-anchor-') + +}) +`; +} +//# sourceMappingURL=generate-vv-anchor-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.js.map new file mode 100644 index 00000000..7266ac34 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-anchor-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAE9F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkFN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.js new file mode 100644 index 00000000..5d3fb3c3 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.js @@ -0,0 +1,182 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.ts +export default function () { + return `// ./tests/Components/vv/anchors/VvInertiaLink.test.ts + +import { mount, RouterLinkStub } from '@vue/test-utils' +import { VvConfig } from '@obewds/vueventus' +import VvInertiaLink from '../../../../../resources/js/Components/vv/anchors/VvInertiaLink.vue' +import appVv from '../../../../../resources/js/app.vv' + + +test('VvInertiaLink.vue component imports successfully', async () => { + + expect(VvInertiaLink).toBeTruthy() + +}) + + +test('VvInertiaLink.vue component accepts a default slot value of markup and text', async () => { + + const testString = "
Test
" + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + }, + slots: { + default: testString, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain(testString) + +}) + + + +test('VvInertiaLink.vue component can successfully inject() a parent component provide() property "vv"', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + provide: { + vv: VvConfig, + }, + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvInertiaLink.vue component returns an expected result when prop button is true', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + button: true, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvInertiaLink.vue component returns an expected result when props button and buttonBlock are true', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + button: true, + buttonBlock: true, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvInertiaLink.vue component returns an expected result when props button and buttonFab are true', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + button: true, + buttonFab: true, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvInertiaLink.vue component returns an expected result when props button, palette, and color are defined', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + button: true, + palette: 'solid', + color: 'default', + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvInertiaLink.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + debug: true, + to: '/', + }, + }) + + expect(wrapper.html()).toContain('data-vv-inertia-link-') + +}) +`; +} +//# sourceMappingURL=generate-vv-inertia-link-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.js.map new file mode 100644 index 00000000..a78c9193 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-inertia-link-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.ts"],"names":[],"mappings":"AAAA,oGAAoG;AAEpG,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiLN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.js new file mode 100644 index 00000000..14b6947d --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.js @@ -0,0 +1,84 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.ts +export default function () { + return `// ./tests/Components/vv/buttons/VvButton.test.ts + +import { mount } from '@vue/test-utils' +import VvButton from '../../../../../resources/js/Components/vv/buttons/VvButton.vue' +import appVv from '../../../../../resources/js/app.vv' + + +test('VvButton.vue component imports successfully', async () => { + + expect(VvButton).toBeTruthy() + +}) + + +test('VvButton.vue component accepts a default slot value of markup and text', async () => { + + const testString = "
Test
" + + const wrapper = mount(VvButton, { + slots: { + default: testString, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain(testString) + +}) + + +test('VvButton.vue component type prop works as expected and validates', async () => { + + const wrapper = mount(VvButton, { + props: { type: 'submit' }, + }) + + expect(wrapper.html()).toContain('') + +}) + + +test('VvButton.vue component props all work as expected', async () => { + + const wrapper = mount(VvButton, { + props: { + block: appVv.defaults.VvButton.block, + color: appVv.defaults.VvButton.color, + fab: appVv.defaults.VvButton.fab, + palette: appVv.defaults.VvButton.palette, + size: appVv.defaults.VvButton.size, + type: appVv.defaults.VvButton.type, + }, + }) + + expect(wrapper.html()).toContain('') + +}) + + +test('VvButton.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvButton, { + props: { + debug: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-button-') + +}) +`; +} +//# sourceMappingURL=generate-vv-button-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.js.map new file mode 100644 index 00000000..07c92f04 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-button-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAE9F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+EN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.js new file mode 100644 index 00000000..89ff4b2d --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.js @@ -0,0 +1,107 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.ts +export default function () { + return `// ./tests/Components/vv/buttons/VvColorModeButton.test.ts + +import { mount } from '@vue/test-utils' +import VvColorModeButton from '../../../../../resources/js/Components/vv/buttons/VvColorModeButton.vue' + + +test('VvColorModeButton.test.vue component imports successfully', async () => { + + expect(VvColorModeButton).toBeTruthy() + +}) + + +test('VvColorModeButton.vue component returns an expected output when the mode prop = "dark"', async () => { + + const wrapper = mount(VvColorModeButton, { + props: { + mode: 'dark', + }, + }) + + expect(wrapper.html()).toContain('svg') + +}) + + +test('VvColorModeButton.vue component returns an expected output when the mode prop = "light"', async () => { + + const wrapper = mount(VvColorModeButton, { + props: { + mode: 'light', + }, + }) + + expect(wrapper.html()).toContain('svg') + +}) + + +test('VvColorModeButton.vue toggles a "dark" mode icon to a "light" mode icon and vice versa', async () => { + + const wrapper = mount(VvColorModeButton, { + props: { + mode: 'dark' + } + }) + + const initSvgPath = wrapper.find('path').html() + + await wrapper.find('button').trigger('click') + + const svgPath = wrapper.find('path').html() + + expect(initSvgPath).not.toBe(svgPath) + + await wrapper.find('button').trigger('click') + + const backToOriginalPath = wrapper.find('path').html() + + expect(initSvgPath).toBe(backToOriginalPath) + +}) + + +test('VvColorModeButton.vue component can check localStorage for a colorMode property stored during a prior user session', async () => { + + const wrapper = mount(VvColorModeButton, { + props: { + mode: 'dark', + }, + global: { + mocks: { + localStorage: { + colorMode: 'light', + setItem (key, item) { + this[key] = item + }, + getItem (key) { + return this[key] + } + } + }, + }, + }) + + expect(wrapper.html()).toContain('svg') + +}) + + +test('VvColorModeButton.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvColorModeButton, { + props: { + mode: 'dark', + debug: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-color-mode-button-') + +}) +`; +} +//# sourceMappingURL=generate-vv-color-mode-button-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.js.map new file mode 100644 index 00000000..6048a3a3 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-color-mode-button-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.ts"],"names":[],"mappings":"AAAA,yGAAyG;AAEzG,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.js new file mode 100644 index 00000000..8508a9d8 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.js @@ -0,0 +1,60 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.ts +export default function () { + return `// ./tests/Components/vv/buttons/VvScrollUp.test.ts + +import { mount } from '@vue/test-utils' +import VvScrollUp from '../../../../../resources/js/Components/vv/buttons/VvScrollUp.vue' + + +test('VvScrollUp.test.vue component imports successfully', async () => { + + expect(VvScrollUp).toBeTruthy() + +}) + + +test('VvScrollUp.vue component returns markup if passed a true value for the isVisible prop', async () => { + + const wrapper = mount(VvScrollUp, { + props: { + isVisible: true + }, + }) + + expect(wrapper.html()).toContain('button') + +}) + + +test('VvScrollUp.vue component is impacted by a click event as expected', async () => { + + const wrapper = mount(VvScrollUp, { + props: { + isVisible: true + }, + }) + + window.dispatchEvent(new CustomEvent('scroll', { detail: 2000 })) + + await wrapper.find('button').trigger('click') + + expect(wrapper.html()).toContain('button') + +}) + + +test('VvScrollUp.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvScrollUp, { + props: { + debug: true, + isVisible: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-scroll-up-') + +}) +`; +} +//# sourceMappingURL=generate-vv-scroll-up-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.js.map new file mode 100644 index 00000000..d5941378 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-scroll-up-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.ts"],"names":[],"mappings":"AAAA,iGAAiG;AAEjG,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.js new file mode 100644 index 00000000..cc404cb4 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.js @@ -0,0 +1,42 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.ts +export default function () { + return `// ./tests/Components/vv/elements/VvEl.test.ts + +import { mount } from '@vue/test-utils' +import VvEl from '../../../../../resources/js/Components/vv/elements/VvEl.vue' + + +test('VvEl.test.vue component imports successfully', async () => { + + expect(VvEl).toBeTruthy() + +}) + + +test('VvEl.vue component accepts a tag prop that validates', async () => { + + const wrapper = mount(VvEl, { + props: { + tag: 'div', + }, + }) + + expect(wrapper.html()).toBeTruthy() + +}) + + +test('VvEl.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvEl, { + props: { + debug: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-el-') + +}) +`; +} +//# sourceMappingURL=generate-vv-el-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.js.map new file mode 100644 index 00000000..4e7bcc93 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-el-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.ts"],"names":[],"mappings":"AAAA,2FAA2F;AAE3F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.js new file mode 100644 index 00000000..bc622026 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.ts +export default function () { + return `// ./tests/Components/vv/forms/VvFormGroup.test.ts + +import { mount } from '@vue/test-utils' +import VvFormGroup from '../../../../../resources/js/Components/vv/forms/VvFormGroup.vue' + + +test('VvFormGroup.test.vue component imports successfully', async () => { + + expect(VvFormGroup).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-vv-form-group-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.js.map new file mode 100644 index 00000000..fedba6fb --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-form-group-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAEhG,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.js new file mode 100644 index 00000000..944a9367 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.ts +export default function () { + return `// ./tests/Components/vv/forms/VvQuadFormGroup.test.ts + +import { mount } from '@vue/test-utils' +import VvQuadFormGroup from '../../../../../resources/js/Components/vv/forms/VvQuadFormGroup.vue' + + +test('VvQuadFormGroup.test.vue component imports successfully', async () => { + + expect(VvQuadFormGroup).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-vv-quad-form-group-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.js.map new file mode 100644 index 00000000..6240520d --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-quad-form-group-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.ts"],"names":[],"mappings":"AAAA,qGAAqG;AAErG,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.js new file mode 100644 index 00000000..f70f268e --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.js @@ -0,0 +1,48 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.ts +export default function () { + return `// ./tests/Components/vv/inputs/VvCheckbox.test.ts + +import { mount } from '@vue/test-utils' +import { VvConfig } from '@obewds/vueventus' +import VvCheckbox from '../../../../../resources/js/Components/vv/inputs/VvCheckbox.vue' + + +test('VvCheckbox.test.vue component imports successfully', async () => { + + expect(VvCheckbox).toBeTruthy() + +}) + + + +test('VvCheckbox.vue component can successfully inject() a parent component provide() property "vv"', async () => { + + const wrapper = mount(VvCheckbox, { + global: { + provide: { + vv: VvConfig, + }, + }, + }) + + expect(wrapper.html()).toContain('input') + +}) + + +test('VvCheckbox.vue component can successfully ingest and output the expected data-test attribute value containing the passed in hex values props', async () => { + + const wrapper = mount(VvCheckbox, { + props: { + lightCheckHex: '#ffffff', + darkCheckHex: '#000000', + }, + }) + + expect(wrapper.html()).toContain('ffffff') + expect(wrapper.html()).toContain('000000') + +}) +`; +} +//# sourceMappingURL=generate-vv-checkbox-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.js.map new file mode 100644 index 00000000..ea6e9cca --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-checkbox-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.js new file mode 100644 index 00000000..03733661 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.js @@ -0,0 +1,62 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.ts +export default function () { + return `// ./tests/Components/vv/inputs/VvInput.test.ts + +import { mount } from '@vue/test-utils' +import { VvConfig } from '@obewds/vueventus' +import VvInput from '../../../../../resources/js/Components/vv/inputs/VvInput.vue' + + +test('VvInput.test.vue component imports successfully', async () => { + + expect(VvInput).toBeTruthy() + +}) + + + +test('VvInput.vue component returns a type email input using the component type prop', async () => { + + const testString = 'email' + + const wrapper = mount(VvInput, { + props: { + type: testString, + }, + }) + + expect(wrapper.html()).toContain(testString) + +}) + + + +test('VvInput.vue component can successfully inject() a parent component provide() property "vv"', async () => { + + const wrapper = mount(VvInput, { + global: { + provide: { + vv: VvConfig, + }, + }, + }) + + expect(wrapper.html()).toContain('input') + +}) + + +test('VvInput.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvInput, { + props: { + debug: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-input-') + +}) +`; +} +//# sourceMappingURL=generate-vv-input-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.js.map new file mode 100644 index 00000000..a391e2cf --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-input-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAE5F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.js new file mode 100644 index 00000000..38f043b3 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.js @@ -0,0 +1,33 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.ts +export default function () { + return `// ./tests/Components/vv/inputs/VvRadio.test.ts + +import { mount } from '@vue/test-utils' +import VvRadio from '../../../../../resources/js/Components/vv/inputs/VvRadio.vue' + + +test('VvRadio.test.vue component imports successfully', async () => { + + expect(VvRadio).toBeTruthy() + +}) + + + +test('VvRadio.vue component returns a radio input using the component type prop', async () => { + + const testString = 'test-value' + + const wrapper = mount(VvRadio, { + props: { + value: testString, + checked: true, + }, + }) + + expect(wrapper.html()).toContain(testString) + +}) +`; +} +//# sourceMappingURL=generate-vv-radio-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.js.map new file mode 100644 index 00000000..753dc294 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-radio-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAE5F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.js new file mode 100644 index 00000000..4d0c1660 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.ts +export default function () { + return `// ./tests/Components/vv/lists/VvListItem.test.ts + +import { mount } from '@vue/test-utils' +import VvListItem from '../../../../../resources/js/Components/vv/lists/VvListItem.vue' + + +test('VvListItem.test.vue component imports successfully', async () => { + + expect(VvListItem).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-vv-list-item-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.js.map new file mode 100644 index 00000000..9f50d405 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-list-item-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.js new file mode 100644 index 00000000..c3cb6c29 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.js @@ -0,0 +1,46 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.ts +export default function () { + return `// ./tests/Components/vv/lists/VvList.test.ts + +import { mount } from '@vue/test-utils' +import VvList from '../../../../../resources/js/Components/vv/lists/VvList.vue' + + +test('VvList.test.vue component imports successfully', async () => { + + expect(VvList).toBeTruthy() + +}) + + +test('VvList.vue component type prop works as expected and validates', async () => { + + const wrapper = mount(VvList, { + props: { + tag: 'ol' + }, + }) + + expect(wrapper.html()).toContain('
    ') + expect(wrapper.html()).toContain('
') + +}) + + +test('VvList.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvList, { + props: { + debug: true, + tag: 'ol' + }, + }) + + expect(wrapper.html()).toContain('data-vv-list-') + +}) +`; +} +//# sourceMappingURL=generate-vv-list-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.js.map new file mode 100644 index 00000000..d8f349c1 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-list-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAE1F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.js new file mode 100644 index 00000000..634e9513 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.ts +export default function () { + return `// ./tests/Components/vv/selects/VvListbox.test.ts + +import { mount } from '@vue/test-utils' +import VvListbox from '../../../../../resources/js/Components/vv/selects/VvListbox.vue' + + +test('VvListbox.test.vue component imports successfully', async () => { + + expect(VvListbox).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-vv-listbox-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.js.map new file mode 100644 index 00000000..8b465aff --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-listbox-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAE/F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.js new file mode 100644 index 00000000..593d0a5c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.ts +export default function () { + return `// ./tests/Components/vv/selects/VvSelect.test.ts + +import { mount } from '@vue/test-utils' +import VvSelect from '../../../../../resources/js/Components/vv/selects/VvSelect.vue' + + +test('VvSelect.test.vue component imports successfully', async () => { + + expect(VvSelect).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-vv-select-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.js.map new file mode 100644 index 00000000..9471ec75 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-select-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAE9F,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.js b/dist/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.js new file mode 100644 index 00000000..8f363002 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.js @@ -0,0 +1,16 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.ts +export default function () { + return `// ./tests/Components/vv/textareas/VvTextarea.test.ts + +import { mount } from '@vue/test-utils' +import VvTextarea from '../../../../../resources/js/Components/vv/textareas/VvTextarea.vue' + + +test('VvTextarea.test.vue component imports successfully', async () => { + + expect(VvTextarea).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-vv-textarea-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.js.map new file mode 100644 index 00000000..1544063f --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vv-textarea-test-ts.js","sourceRoot":"","sources":["../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAElG,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;CAWN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.js b/dist/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.js new file mode 100644 index 00000000..2df9be41 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.js @@ -0,0 +1,15 @@ +// ./src/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.ts +export default function () { + return `// ./tests/Vitest/Pages/Dashboard.test.ts + +import { mount } from '@vue/test-utils' +import Dashboard from '../../../resources/js/Pages/Dashboard.vue' + +test('Dashboard.vue component imports successfully', async () => { + + expect(Dashboard).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-dashboard-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.js.map new file mode 100644 index 00000000..fc816557 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-dashboard-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAE9E,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;CAUN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.js b/dist/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.js new file mode 100644 index 00000000..89fcce2c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.js @@ -0,0 +1,15 @@ +// ./src/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.ts +export default function () { + return `// ./tests/Vitest/Pages/PrivacyPolicy.test.ts + +import { mount } from '@vue/test-utils' +import PrivacyPolicy from '../../../resources/js/Pages/PrivacyPolicy.vue' + +test('PrivacyPolicy.vue component imports successfully', async () => { + + expect(PrivacyPolicy).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-privacy-policy-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.js.map new file mode 100644 index 00000000..d63902cd --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-privacy-policy-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.ts"],"names":[],"mappings":"AAAA,mFAAmF;AAEnF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;CAUN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.js b/dist/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.js new file mode 100644 index 00000000..32c1fc96 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.js @@ -0,0 +1,15 @@ +// ./src/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.ts +export default function () { + return `// ./tests/Vitest/Pages/TermsOfService.test.ts + +import { mount } from '@vue/test-utils' +import TermsOfService from '../../../resources/js/Pages/TermsOfService.vue' + +test('TermsOfService.vue component imports successfully', async () => { + + expect(TermsOfService).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-terms-of-service-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.js.map new file mode 100644 index 00000000..463a5469 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-terms-of-service-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;CAUN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.d.ts b/dist/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.d.ts new file mode 100644 index 00000000..2c5e828c --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.d.ts @@ -0,0 +1 @@ +export default function (): string; diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.js b/dist/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.js new file mode 100644 index 00000000..aa8645d1 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.js @@ -0,0 +1,15 @@ +// ./src/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.ts +export default function () { + return `// ./tests/Vitest/Pages/VueVentus.test.ts + +import { mount } from '@vue/test-utils' +import VueVentus from '../../../resources/js/Pages/VueVentus.vue' + +test('VueVentus.vue component imports successfully', async () => { + + expect(VueVentus).toBeTruthy() + +}) +`; +} +//# sourceMappingURL=generate-vue-ventus-test-ts.js.map \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.js.map new file mode 100644 index 00000000..ebb44dd8 --- /dev/null +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.js.map @@ -0,0 +1 @@ +{"version":3,"file":"generate-vue-ventus-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;CAUN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.js b/dist/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.js index 14289beb..bbdf297f 100644 --- a/dist/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.js +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.js @@ -5,8 +5,6 @@ export default function () { import { mount } from '@vue/test-utils' import Welcome from '../../../resources/js/Pages/Welcome.vue' -import '../../../resources/js/fontAwesomePro' - test('Welcome.vue component imports successfully', async () => { expect(Welcome).toBeTruthy() diff --git a/dist/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.js.map b/dist/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.js.map index c14c1896..ea4ce03a 100644 --- a/dist/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.js.map +++ b/dist/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.js.map @@ -1 +1 @@ -{"version":3,"file":"generate-welcome-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;;;CAYN,CAAC;AAEF,CAAC"} \ No newline at end of file +{"version":3,"file":"generate-welcome-test-ts.js","sourceRoot":"","sources":["../../../../../../src/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAE5E,MAAM,CAAC,OAAO;IAEd,OAAO;;;;;;;;;;CAUN,CAAC;AAEF,CAAC"} \ No newline at end of file diff --git a/dist/helpers/select-installation.d.ts b/dist/helpers/select-installation.d.ts index 11a97a52..e31cd79d 100644 --- a/dist/helpers/select-installation.d.ts +++ b/dist/helpers/select-installation.d.ts @@ -1,2 +1,2 @@ -export type ViltDsInstallationChoice = 'Install VILT DS Into A Laravel Jetstream Starter App' | null; +export type ViltDsInstallationChoice = 'Install VILT DS and Vitest TS Tests Into A Laravel Jetstream Starter App' | null; export default function (): Promise; diff --git a/dist/helpers/select-installation.js b/dist/helpers/select-installation.js index 233fd877..88c8f681 100644 --- a/dist/helpers/select-installation.js +++ b/dist/helpers/select-installation.js @@ -3,7 +3,7 @@ import inquirer from 'inquirer'; import viltDsBrand from '../helpers/vilt-ds-brand.js'; export default async function () { let choices = [ - 'Install VILT DS Into A Laravel Jetstream Starter App', + 'Install VILT DS and Vitest TS Tests Into A Laravel Jetstream Starter App', ]; const answers = await inquirer.prompt({ name: 'installChoice', diff --git a/dist/helpers/select-installation.js.map b/dist/helpers/select-installation.js.map index 867d764d..ada37a98 100644 --- a/dist/helpers/select-installation.js.map +++ b/dist/helpers/select-installation.js.map @@ -1 +1 @@ -{"version":3,"file":"select-installation.js","sourceRoot":"","sources":["../../src/helpers/select-installation.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,QAAQ,MAAM,UAAU,CAAA;AAE/B,OAAO,WAAW,MAAM,6BAA6B,CAAA;AAIrD,MAAM,CAAC,OAAO,CAAC,KAAK;IAEhB,IAAI,OAAO,GAAoC;QAC3C,sDAAsD;KACzD,CAAA;IAED,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;QAClC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ,GAAG,WAAW,GAAG,yBAAyB;QAC3D,OAAO,EAAE,OAAO;KACnB,CAAC,CAAA;IAEF,OAAO,OAAO,CAAC,aAAyC,CAAA;AAE5D,CAAC"} \ No newline at end of file +{"version":3,"file":"select-installation.js","sourceRoot":"","sources":["../../src/helpers/select-installation.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,QAAQ,MAAM,UAAU,CAAA;AAE/B,OAAO,WAAW,MAAM,6BAA6B,CAAA;AAIrD,MAAM,CAAC,OAAO,CAAC,KAAK;IAEhB,IAAI,OAAO,GAAoC;QAC3C,0EAA0E;KAC7E,CAAA;IAED,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;QAClC,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ,GAAG,WAAW,GAAG,yBAAyB;QAC3D,OAAO,EAAE,OAAO;KACnB,CAAC,CAAA;IAEF,OAAO,OAAO,CAAC,aAAyC,CAAA;AAE5D,CAAC"} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 60e23ec4..c9f7fb1b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -11,7 +11,7 @@ userInstallation = await selectInstallation(); console.log(' '); // For a standard installation with an existing // Laravel + Jetstream install in a current working (root) directory -if (userInstallation === 'Install VILT DS Into A Laravel Jetstream Starter App') { +if (userInstallation === 'Install VILT DS and Vitest TS Tests Into A Laravel Jetstream Starter App') { installViltDsJetstream(); } //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map index b4462fc7..80452677 100644 --- a/dist/index.js.map +++ b/dist/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,iBAAiB;AAIjB,OAAO,eAAe,MAAM,gCAAgC,CAAA;AAC5D,OAAO,kBAAkB,MAAM,kCAAkC,CAAA;AAEjE,OAAO,sBAAsB,MAAM,2CAA2C,CAAA;AAG9E,IAAI,gBAAgB,GAA6B,IAAI,CAAA;AAErD,uCAAuC;AACvC,eAAe,EAAE,CAAA;AAEjB,0DAA0D;AAC1D,gBAAgB,GAAG,MAAM,kBAAkB,EAAE,CAAA;AAC7C,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAEhB,+CAA+C;AAC/C,oEAAoE;AACpE,IAAI,gBAAgB,KAAK,sDAAsD,EAAE;IAC7E,sBAAsB,EAAE,CAAA;CAC3B"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,iBAAiB;AAIjB,OAAO,eAAe,MAAM,gCAAgC,CAAA;AAC5D,OAAO,kBAAkB,MAAM,kCAAkC,CAAA;AAEjE,OAAO,sBAAsB,MAAM,2CAA2C,CAAA;AAG9E,IAAI,gBAAgB,GAA6B,IAAI,CAAA;AAErD,uCAAuC;AACvC,eAAe,EAAE,CAAA;AAEjB,0DAA0D;AAC1D,gBAAgB,GAAG,MAAM,kBAAkB,EAAE,CAAA;AAC7C,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAEhB,+CAA+C;AAC/C,oEAAoE;AACpE,IAAI,gBAAgB,KAAK,0EAA0E,EAAE;IACjG,sBAAsB,EAAE,CAAA;CAC3B"} \ No newline at end of file diff --git a/dist/installers/install-vilt-ds-jetstream.js b/dist/installers/install-vilt-ds-jetstream.js index 59dd94c1..3ac7f4b0 100644 --- a/dist/installers/install-vilt-ds-jetstream.js +++ b/dist/installers/install-vilt-ds-jetstream.js @@ -39,13 +39,17 @@ import generateVitestHeadMockedVue from '../generators/jetstream/generate-vitest import generateVitestSetupTs from '../generators/jetstream/generate-vitest-setup-ts.js'; import generateVitestZiggyRouteShimDTs from '../generators/jetstream/generate-vitest-ziggy-route-shim-d-ts.js'; // import laravel and vueventus updatable files to be installed -import vueventus from '../updaters/vueventus.js'; import jetstreamBaseComponents from '../updaters/jetstream-base-components.js'; import jetstreamApi from '../updaters/jetstream-api.js'; import jetstreamAuth from '../updaters/jetstream-auth.js'; import jetstreamProfile from '../updaters/jetstream-profile.js'; import jetstreamTeams from '../updaters/jetstream-teams.js'; import jetstreamBasePages from '../updaters/jetstream-base-pages.js'; +import vueventus from '../updaters/vueventus.js'; +// import vitest typescript tests for laravel and vueventus components to be installed +import jetstreamBaseComponentTests from '../updaters/jetstream-base-component-tests.js'; +import jetstreamBasePageTests from '../updaters/jetstream-base-page-tests.js'; +import vueventusTests from '../updaters/vueventus-tests.js'; // import suggested VS Code Extensions for VILT DS import viltDsVscodeExtensions from '../data/ide/vilt-ds-vscode-extensions.js'; export default function () { @@ -94,6 +98,10 @@ export default function () { jetstreamProfile(); jetstreamTeams(); jetstreamBasePages(); + // install vitest typescript tests for laravel and vueventus components + jetstreamBaseComponentTests(); + jetstreamBasePageTests(); + vueventusTests(); // install suggested VS Code Extensions for VILT DS installFile('/.vscode/extensions.json', JSON.stringify(viltDsVscodeExtensions, null, 4)); console.log(' '); diff --git a/dist/installers/install-vilt-ds-jetstream.js.map b/dist/installers/install-vilt-ds-jetstream.js.map index 9f37a82e..607aea59 100644 --- a/dist/installers/install-vilt-ds-jetstream.js.map +++ b/dist/installers/install-vilt-ds-jetstream.js.map @@ -1 +1 @@ -{"version":3,"file":"install-vilt-ds-jetstream.js","sourceRoot":"","sources":["../../src/installers/install-vilt-ds-jetstream.ts"],"names":[],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"install-vilt-ds-jetstream.js","sourceRoot":"","sources":["../../src/installers/install-vilt-ds-jetstream.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/dist/update-jetstream-base-component-tests.d.ts b/dist/update-jetstream-base-component-tests.d.ts new file mode 100644 index 00000000..b7988016 --- /dev/null +++ b/dist/update-jetstream-base-component-tests.d.ts @@ -0,0 +1,2 @@ +#!/usr/bin/env node +export {}; diff --git a/dist/update-jetstream-base-component-tests.js b/dist/update-jetstream-base-component-tests.js new file mode 100644 index 00000000..5cd1ea81 --- /dev/null +++ b/dist/update-jetstream-base-component-tests.js @@ -0,0 +1,5 @@ +#!/usr/bin/env node +// ./src/update-jetstream-base-component-tests.ts +import jetstreamBaseComponentTests from './updaters/jetstream-base-component-tests.js'; +jetstreamBaseComponentTests(); +//# sourceMappingURL=update-jetstream-base-component-tests.js.map \ No newline at end of file diff --git a/dist/update-jetstream-base-component-tests.js.map b/dist/update-jetstream-base-component-tests.js.map new file mode 100644 index 00000000..e25b7fd5 --- /dev/null +++ b/dist/update-jetstream-base-component-tests.js.map @@ -0,0 +1 @@ +{"version":3,"file":"update-jetstream-base-component-tests.js","sourceRoot":"","sources":["../src/update-jetstream-base-component-tests.ts"],"names":[],"mappings":";AACA,iDAAiD;AAEjD,OAAO,2BAA2B,MAAM,8CAA8C,CAAA;AAEtF,2BAA2B,EAAE,CAAA"} \ No newline at end of file diff --git a/dist/update-jetstream-base-page-tests.d.ts b/dist/update-jetstream-base-page-tests.d.ts new file mode 100644 index 00000000..b7988016 --- /dev/null +++ b/dist/update-jetstream-base-page-tests.d.ts @@ -0,0 +1,2 @@ +#!/usr/bin/env node +export {}; diff --git a/dist/update-jetstream-base-page-tests.js b/dist/update-jetstream-base-page-tests.js new file mode 100644 index 00000000..09a6dfa7 --- /dev/null +++ b/dist/update-jetstream-base-page-tests.js @@ -0,0 +1,5 @@ +#!/usr/bin/env node +// ./src/update-jetstream-base-page-tests.ts +import jetstreamBasePageTests from './updaters/jetstream-base-page-tests.js'; +jetstreamBasePageTests(); +//# sourceMappingURL=update-jetstream-base-page-tests.js.map \ No newline at end of file diff --git a/dist/update-jetstream-base-page-tests.js.map b/dist/update-jetstream-base-page-tests.js.map new file mode 100644 index 00000000..132edd4a --- /dev/null +++ b/dist/update-jetstream-base-page-tests.js.map @@ -0,0 +1 @@ +{"version":3,"file":"update-jetstream-base-page-tests.js","sourceRoot":"","sources":["../src/update-jetstream-base-page-tests.ts"],"names":[],"mappings":";AACA,4CAA4C;AAE5C,OAAO,sBAAsB,MAAM,yCAAyC,CAAA;AAE5E,sBAAsB,EAAE,CAAA"} \ No newline at end of file diff --git a/dist/update-vueventus-tests.d.ts b/dist/update-vueventus-tests.d.ts new file mode 100644 index 00000000..b7988016 --- /dev/null +++ b/dist/update-vueventus-tests.d.ts @@ -0,0 +1,2 @@ +#!/usr/bin/env node +export {}; diff --git a/dist/update-vueventus-tests.js b/dist/update-vueventus-tests.js new file mode 100644 index 00000000..c3b7a6fc --- /dev/null +++ b/dist/update-vueventus-tests.js @@ -0,0 +1,5 @@ +#!/usr/bin/env node +// ./src/update-vueventus-tests.ts +import vueventusTests from './updaters/vueventus-tests.js'; +vueventusTests(); +//# sourceMappingURL=update-vueventus-tests.js.map \ No newline at end of file diff --git a/dist/update-vueventus-tests.js.map b/dist/update-vueventus-tests.js.map new file mode 100644 index 00000000..2862c97b --- /dev/null +++ b/dist/update-vueventus-tests.js.map @@ -0,0 +1 @@ +{"version":3,"file":"update-vueventus-tests.js","sourceRoot":"","sources":["../src/update-vueventus-tests.ts"],"names":[],"mappings":";AACA,kCAAkC;AAElC,OAAO,cAAc,MAAM,+BAA+B,CAAA;AAE1D,cAAc,EAAE,CAAA"} \ No newline at end of file diff --git a/dist/updaters/jetstream-base-component-tests.d.ts b/dist/updaters/jetstream-base-component-tests.d.ts new file mode 100644 index 00000000..399a90f2 --- /dev/null +++ b/dist/updaters/jetstream-base-component-tests.d.ts @@ -0,0 +1 @@ +export default function (): void; diff --git a/dist/updaters/jetstream-base-component-tests.js b/dist/updaters/jetstream-base-component-tests.js new file mode 100644 index 00000000..d901ea42 --- /dev/null +++ b/dist/updaters/jetstream-base-component-tests.js @@ -0,0 +1,59 @@ +// ./src/updaters/jetstream-base-component-tests.ts +import installFile from '../helpers/install-file.js'; +import generateActionMessageTestTs from '../generators/jetstream/tests/Vitest/Components/generate-action-message-test-ts.js'; +import generateActionSectionTestTs from '../generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.js'; +import generateApplicationLogoTestTs from '../generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.js'; +import generateApplicationMarkTestTs from '../generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.js'; +import generateAuthenticationCardLogoTestTs from '../generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.js'; +import generateAuthenticationCardTestTs from '../generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.js'; +import generateBannerTestTs from '../generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.js'; +import generateCheckboxTestTs from '../generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.js'; +import generateConfirmationModalTestTs from '../generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.js'; +import generateConfirmationPasswordTestTs from '../generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.js'; +import generateDangerButtonTestTs from '../generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.js'; +import generateDialogModalTestTs from '../generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.js'; +import generateDropdownLinkTestTs from '../generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.js'; +import generateDropdownTestTs from '../generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.js'; +import generateFormSectionTestTs from '../generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.js'; +import generateInputErrorTestTs from '../generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.js'; +import generateInputLabelTestTs from '../generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.js'; +import generateModalTestTs from '../generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.js'; +import generateNavLinkTestTs from '../generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.js'; +import generatePrimaryButtonTestTs from '../generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.js'; +import generateResponsiveNavLinkTestTs from '../generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.js'; +import generateScrollUpColorModeSectionTestTs from '../generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.js'; +import generateSecondaryButtonTestTs from '../generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.js'; +import generateSectionBorderTestTs from '../generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.js'; +import generateSectionTitleTestTs from '../generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.js'; +import generateTextInputTestTs from '../generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.js'; +import generateWelcomeTestTs from '../generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.js'; +export default function () { + installFile('/tests/Vitest/Components/ActionMessage.test.js', generateActionMessageTestTs()); + installFile('/tests/Vitest/Components/ActionSection.test.js', generateActionSectionTestTs()); + installFile('/tests/Vitest/Components/ApplicationLogo.test.js', generateApplicationLogoTestTs()); + installFile('/tests/Vitest/Components/ApplicationMark.test.js', generateApplicationMarkTestTs()); + installFile('/tests/Vitest/Components/AuthenticationCardLogo.test.js', generateAuthenticationCardLogoTestTs()); + installFile('/tests/Vitest/Components/AuthenticationCard.test.js', generateAuthenticationCardTestTs()); + installFile('/tests/Vitest/Components/Banner.test.js', generateBannerTestTs()); + installFile('/tests/Vitest/Components/Checkbox.test.js', generateCheckboxTestTs()); + installFile('/tests/Vitest/Components/ConfirmationModal.test.js', generateConfirmationModalTestTs()); + installFile('/tests/Vitest/Components/ConfirmationPassword.test.js', generateConfirmationPasswordTestTs()); + installFile('/tests/Vitest/Components/DangerButton.test.js', generateDangerButtonTestTs()); + installFile('/tests/Vitest/Components/DialogModal.test.js', generateDialogModalTestTs()); + installFile('/tests/Vitest/Components/DropdownLink.test.js', generateDropdownLinkTestTs()); + installFile('/tests/Vitest/Components/Dropdown.test.js', generateDropdownTestTs()); + installFile('/tests/Vitest/Components/FormSection.test.js', generateFormSectionTestTs()); + installFile('/tests/Vitest/Components/InputError.test.js', generateInputErrorTestTs()); + installFile('/tests/Vitest/Components/InputLabel.test.js', generateInputLabelTestTs()); + installFile('/tests/Vitest/Components/Modal.test.js', generateModalTestTs()); + installFile('/tests/Vitest/Components/NavLink.test.js', generateNavLinkTestTs()); + installFile('/tests/Vitest/Components/PrimaryButton.test.js', generatePrimaryButtonTestTs()); + installFile('/tests/Vitest/Components/ResponsiveNavLink.test.js', generateResponsiveNavLinkTestTs()); + installFile('/tests/Vitest/Components/ScrollUpColorModeSection.test.js', generateScrollUpColorModeSectionTestTs()); + installFile('/tests/Vitest/Components/SecondaryButton.test.js', generateSecondaryButtonTestTs()); + installFile('/tests/Vitest/Components/SectionBorder.test.js', generateSectionBorderTestTs()); + installFile('/tests/Vitest/Components/SectionTitle.test.js', generateSectionTitleTestTs()); + installFile('/tests/Vitest/Components/TextInput.test.js', generateTextInputTestTs()); + installFile('/tests/Vitest/Components/Welcome.test.js', generateWelcomeTestTs()); +} +//# sourceMappingURL=jetstream-base-component-tests.js.map \ No newline at end of file diff --git a/dist/updaters/jetstream-base-component-tests.js.map b/dist/updaters/jetstream-base-component-tests.js.map new file mode 100644 index 00000000..100ec6ee --- /dev/null +++ b/dist/updaters/jetstream-base-component-tests.js.map @@ -0,0 +1 @@ +{"version":3,"file":"jetstream-base-component-tests.js","sourceRoot":"","sources":["../../src/updaters/jetstream-base-component-tests.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/dist/updaters/jetstream-base-components.js b/dist/updaters/jetstream-base-components.js index 13097b29..8e48e915 100644 --- a/dist/updaters/jetstream-base-components.js +++ b/dist/updaters/jetstream-base-components.js @@ -1,6 +1,5 @@ // ./src/updaters/jetstream-base-components.ts import installFile from '../helpers/install-file.js'; -// import component generators import generateActionMessageVue from '../generators/jetstream/resources/js/Components/generate-action-message-vue.js'; import generateActionSectionVue from '../generators/jetstream/resources/js/Components/generate-action-section-vue.js'; import generateApplicationLogoVue from '../generators/jetstream/resources/js/Components/generate-application-logo-vue.js'; @@ -28,10 +27,7 @@ import generateSectionBorderVue from '../generators/jetstream/resources/js/Compo import generateSectionTitleVue from '../generators/jetstream/resources/js/Components/generate-section-title-vue.js'; import generateTextInputVue from '../generators/jetstream/resources/js/Components/generate-text-input-vue.js'; import generateWelcomeVue from '../generators/jetstream/resources/js/Components/generate-welcome-vue.js'; -// import vitest test generators for each component -import generateActionMessageTestTs from '../generators/jetstream/tests/Vitest/Components/generate-action-message-test-ts.js'; // generate-action-message-test-ts.ts export default function () { - // install component generators installFile('/resources/js/Components/ActionMessage.vue', generateActionMessageVue()); installFile('/resources/js/Components/ActionSection.vue', generateActionSectionVue()); installFile('/resources/js/Components/ApplicationLogo.vue', generateApplicationLogoVue()); @@ -59,7 +55,5 @@ export default function () { installFile('/resources/js/Components/SectionTitle.vue', generateSectionTitleVue()); installFile('/resources/js/Components/TextInput.vue', generateTextInputVue()); installFile('/resources/js/Components/Welcome.vue', generateWelcomeVue()); - // install vitest test generators for each component - installFile('/tests/Vitest/Components/ActionMessage.test.ts', generateActionMessageTestTs()); } //# sourceMappingURL=jetstream-base-components.js.map \ No newline at end of file diff --git a/dist/updaters/jetstream-base-components.js.map b/dist/updaters/jetstream-base-components.js.map index 4cc78d14..df26946e 100644 --- a/dist/updaters/jetstream-base-components.js.map +++ b/dist/updaters/jetstream-base-components.js.map @@ -1 +1 @@ -{"version":3,"file":"jetstream-base-components.js","sourceRoot":"","sources":["../../src/updaters/jetstream-base-components.ts"],"names":[],"mappings":"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"} \ No newline at end of file +{"version":3,"file":"jetstream-base-components.js","sourceRoot":"","sources":["../../src/updaters/jetstream-base-components.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/dist/updaters/jetstream-base-page-tests.d.ts b/dist/updaters/jetstream-base-page-tests.d.ts new file mode 100644 index 00000000..399a90f2 --- /dev/null +++ b/dist/updaters/jetstream-base-page-tests.d.ts @@ -0,0 +1 @@ +export default function (): void; diff --git a/dist/updaters/jetstream-base-page-tests.js b/dist/updaters/jetstream-base-page-tests.js new file mode 100644 index 00000000..dd2f00de --- /dev/null +++ b/dist/updaters/jetstream-base-page-tests.js @@ -0,0 +1,15 @@ +// ./src/updaters/jetstream-base-page-tests.ts +import installFile from '../helpers/install-file.js'; +import generateDashboardTestTs from '../generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.js'; +import generatePrivacyPolicyTestTs from '../generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.js'; +import generateTermsOfServiceTestTs from '../generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.js'; +import generateVueVentusTestTs from '../generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.js'; +import generateWelcomeTestTs from '../generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.js'; +export default function () { + installFile('/tests/Vitest/Pages/Dashboard.vue', generateDashboardTestTs()); + installFile('/tests/Vitest/Pages/PrivacyPolicy.vue', generatePrivacyPolicyTestTs()); + installFile('/tests/Vitest/Pages/TermsOfService.vue', generateTermsOfServiceTestTs()); + installFile('/tests/Vitest/Pages/VueVentus.vue', generateVueVentusTestTs()); + installFile('/tests/Vitest/Pages/Welcome.vue', generateWelcomeTestTs()); +} +//# sourceMappingURL=jetstream-base-page-tests.js.map \ No newline at end of file diff --git a/dist/updaters/jetstream-base-page-tests.js.map b/dist/updaters/jetstream-base-page-tests.js.map new file mode 100644 index 00000000..92f8686f --- /dev/null +++ b/dist/updaters/jetstream-base-page-tests.js.map @@ -0,0 +1 @@ +{"version":3,"file":"jetstream-base-page-tests.js","sourceRoot":"","sources":["../../src/updaters/jetstream-base-page-tests.ts"],"names":[],"mappings":"AAAA,8CAA8C;AAE9C,OAAO,WAAW,MAAM,4BAA4B,CAAA;AAEpD,OAAO,uBAAuB,MAAM,0EAA0E,CAAA;AAC9G,OAAO,2BAA2B,MAAM,+EAA+E,CAAA;AACvH,OAAO,4BAA4B,MAAM,iFAAiF,CAAA;AAC1H,OAAO,uBAAuB,MAAM,2EAA2E,CAAA;AAC/G,OAAO,qBAAqB,MAAM,wEAAwE,CAAA;AAE1G,MAAM,CAAC,OAAO;IAEV,WAAW,CAAE,mCAAmC,EAAE,uBAAuB,EAAE,CAAE,CAAA;IAC7E,WAAW,CAAE,uCAAuC,EAAE,2BAA2B,EAAE,CAAE,CAAA;IACrF,WAAW,CAAE,wCAAwC,EAAE,4BAA4B,EAAE,CAAE,CAAA;IACvF,WAAW,CAAE,mCAAmC,EAAE,uBAAuB,EAAE,CAAE,CAAA;IAC7E,WAAW,CAAE,iCAAiC,EAAE,qBAAqB,EAAE,CAAE,CAAA;AAE7E,CAAC"} \ No newline at end of file diff --git a/dist/updaters/vueventus-tests.d.ts b/dist/updaters/vueventus-tests.d.ts new file mode 100644 index 00000000..399a90f2 --- /dev/null +++ b/dist/updaters/vueventus-tests.d.ts @@ -0,0 +1 @@ +export default function (): void; diff --git a/dist/updaters/vueventus-tests.js b/dist/updaters/vueventus-tests.js new file mode 100644 index 00000000..bca1bff3 --- /dev/null +++ b/dist/updaters/vueventus-tests.js @@ -0,0 +1,37 @@ +// ./src/updaters/vueventus-tests.ts +import installFile from '../helpers/install-file.js'; +import generateVvAnchorTestTs from '../generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.js'; +import generateVvInertiaLinkTestTs from '../generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.js'; +import generateVvButtonTestTs from '../generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.js'; +import generateVvColorModeButtonTestTs from '../generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.js'; +import generateVvScrollUpTestTs from '../generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.js'; +import generateVvElTestTs from '../generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.js'; +import generateVvFormGroupTestTs from '../generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.js'; +import generateVvQuadFormGroupTestTs from '../generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.js'; +import generateVvCheckboxTestTs from '../generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.js'; +import generateVvInputTestTs from '../generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.js'; +import generateVvRadioTestTs from '../generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.js'; +import generateVvListItemTestTs from '../generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.js'; +import generateVvListTestTs from '../generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.js'; +import generateVvListboxTestTs from '../generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.js'; +import generateVvSelectTestTs from '../generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.js'; +import generateVvTextareaTestTs from '../generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.js'; +export default function () { + installFile('/test/Vitest/Components/vv/anchors/VvAnchor.test.ts', generateVvAnchorTestTs()); + installFile('/test/Vitest/Components/vv/anchors/VvInertiaLink.test.ts', generateVvInertiaLinkTestTs()); + installFile('/test/Vitest/Components/vv/buttons/VvButton.test.ts', generateVvButtonTestTs()); + installFile('/test/Vitest/Components/vv/buttons/VvColorModeButton.test.ts', generateVvColorModeButtonTestTs()); + installFile('/test/Vitest/Components/vv/buttons/VvScrollUp.test.ts', generateVvScrollUpTestTs()); + installFile('/test/Vitest/Components/vv/elements/VvEl.test.ts', generateVvElTestTs()); + installFile('/test/Vitest/Components/vv/forms/VvFormGroup.test.ts', generateVvFormGroupTestTs()); + installFile('/test/Vitest/Components/vv/forms/VvQuadFormGroup.test.ts', generateVvQuadFormGroupTestTs()); + installFile('/test/Vitest/Components/vv/inputs/VvCheckbox.test.ts', generateVvCheckboxTestTs()); + installFile('/test/Vitest/Components/vv/inputs/VvInput.test.ts', generateVvInputTestTs()); + installFile('/test/Vitest/Components/vv/inputs/VvRadio.test.ts', generateVvRadioTestTs()); + installFile('/test/Vitest/Components/vv/lists/VvListItem.test.ts', generateVvListItemTestTs()); + installFile('/test/Vitest/Components/vv/lists/VvList.test.ts', generateVvListTestTs()); + installFile('/test/Vitest/Components/vv/selects/VvListbox.test.ts', generateVvListboxTestTs()); + installFile('/test/Vitest/Components/vv/selects/VvSelect.test.ts', generateVvSelectTestTs()); + installFile('/test/Vitest/Components/vv/textareas/VvTextarea.test.ts', generateVvTextareaTestTs()); +} +//# sourceMappingURL=vueventus-tests.js.map \ No newline at end of file diff --git a/dist/updaters/vueventus-tests.js.map b/dist/updaters/vueventus-tests.js.map new file mode 100644 index 00000000..9d34c079 --- /dev/null +++ b/dist/updaters/vueventus-tests.js.map @@ -0,0 +1 @@ +{"version":3,"file":"vueventus-tests.js","sourceRoot":"","sources":["../../src/updaters/vueventus-tests.ts"],"names":[],"mappings":"AAAA,oCAAoC;AAEpC,OAAO,WAAW,MAAM,4BAA4B,CAAA;AAEpD,OAAO,sBAAsB,MAAM,0FAA0F,CAAA;AAC7H,OAAO,2BAA2B,MAAM,gGAAgG,CAAA;AACxI,OAAO,sBAAsB,MAAM,0FAA0F,CAAA;AAC7H,OAAO,+BAA+B,MAAM,qGAAqG,CAAA;AACjJ,OAAO,wBAAwB,MAAM,6FAA6F,CAAA;AAClI,OAAO,kBAAkB,MAAM,uFAAuF,CAAA;AACtH,OAAO,yBAAyB,MAAM,4FAA4F,CAAA;AAClI,OAAO,6BAA6B,MAAM,iGAAiG,CAAA;AAC3I,OAAO,wBAAwB,MAAM,2FAA2F,CAAA;AAChI,OAAO,qBAAqB,MAAM,wFAAwF,CAAA;AAC1H,OAAO,qBAAqB,MAAM,wFAAwF,CAAA;AAC1H,OAAO,wBAAwB,MAAM,2FAA2F,CAAA;AAChI,OAAO,oBAAoB,MAAM,sFAAsF,CAAA;AACvH,OAAO,uBAAuB,MAAM,2FAA2F,CAAA;AAC/H,OAAO,sBAAsB,MAAM,0FAA0F,CAAA;AAC7H,OAAO,wBAAwB,MAAM,8FAA8F,CAAA;AAEnI,MAAM,CAAC,OAAO;IAEV,WAAW,CAAE,qDAAqD,EAAE,sBAAsB,EAAE,CAAE,CAAA;IAC9F,WAAW,CAAE,0DAA0D,EAAE,2BAA2B,EAAE,CAAE,CAAA;IACxG,WAAW,CAAE,qDAAqD,EAAE,sBAAsB,EAAE,CAAE,CAAA;IAC9F,WAAW,CAAE,8DAA8D,EAAE,+BAA+B,EAAE,CAAE,CAAA;IAChH,WAAW,CAAE,uDAAuD,EAAE,wBAAwB,EAAE,CAAE,CAAA;IAClG,WAAW,CAAE,kDAAkD,EAAE,kBAAkB,EAAE,CAAE,CAAA;IACvF,WAAW,CAAE,sDAAsD,EAAE,yBAAyB,EAAE,CAAE,CAAA;IAClG,WAAW,CAAE,0DAA0D,EAAE,6BAA6B,EAAE,CAAE,CAAA;IAC1G,WAAW,CAAE,sDAAsD,EAAE,wBAAwB,EAAE,CAAE,CAAA;IACjG,WAAW,CAAE,mDAAmD,EAAE,qBAAqB,EAAE,CAAE,CAAA;IAC3F,WAAW,CAAE,mDAAmD,EAAE,qBAAqB,EAAE,CAAE,CAAA;IAC3F,WAAW,CAAE,qDAAqD,EAAE,wBAAwB,EAAE,CAAE,CAAA;IAChG,WAAW,CAAE,iDAAiD,EAAE,oBAAoB,EAAE,CAAE,CAAA;IACxF,WAAW,CAAE,sDAAsD,EAAE,uBAAuB,EAAE,CAAE,CAAA;IAChG,WAAW,CAAE,qDAAqD,EAAE,sBAAsB,EAAE,CAAE,CAAA;IAC9F,WAAW,CAAE,yDAAyD,EAAE,wBAAwB,EAAE,CAAE,CAAA;AAExG,CAAC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 55345817..58bc944f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@obewds/vilt-ds", - "version": "0.16.1", + "version": "0.17.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@obewds/vilt-ds", - "version": "0.16.1", + "version": "0.17.0", "license": "MIT", "dependencies": { "@obewds/puff-js": "^0.1.6", diff --git a/package.json b/package.json index 7f1cf5f4..aab3c85d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@obewds/vilt-ds", - "version": "0.16.1", + "version": "0.17.0", "description": "The official repository for the VILT Design System for the Vue.js, Inertia.js, Laravel, and Tailwind CSS web app stack that is turbocharged with Typescript and VueVentus.", "license": "MIT", "author": "Matt McT", @@ -24,10 +24,13 @@ "bin": { "vilt-ds": "./dist/index.js", "vilt-ds-vueventus": "./dist/update-vueventus.js", + "vilt-ds-vueventus-tests": "./dist/update-vueventus-tests.js", "vilt-ds-jetstream-api": "./dist/update-jetstream-api.js", "vilt-ds-jetstream-auth": "./dist/update-jetstream-auth.js", "vilt-ds-jetstream-base-components": "./dist/update-jetstream-base-components.js", + "vilt-ds-jetstream-base-component-tests": "./dist/update-jetstream-base-component-tests.js", "vilt-ds-jetstream-base-pages": "./dist/update-jetstream-base-pages.js", + "vilt-ds-jetstream-base-page-tests": "./dist/update-jetstream-base-page-tests.js", "vilt-ds-jetstream-profile": "./dist/update-jetstream-profile.js", "vilt-ds-jetstream-teams": "./dist/update-jetstream-teams.js" }, diff --git a/src/data/gitignore/vilt-ds-developer-gitignore.ts b/src/data/gitignore/vilt-ds-developer-gitignore.ts index f458a131..1fecc753 100644 --- a/src/data/gitignore/vilt-ds-developer-gitignore.ts +++ b/src/data/gitignore/vilt-ds-developer-gitignore.ts @@ -3,6 +3,9 @@ export default `# NPM Remote Credentials File .npmrc +# Vitest testing coverage +coverage + # Local Project Items .vscode .idea diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.ts new file mode 100644 index 00000000..9f911c16 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/ActionSection.test.ts + +import { mount } from '@vue/test-utils' +import ActionSection from '../../../resources/js/Components/ActionSection.vue' + + +test('ActionSection.vue component imports successfully', async () => { + + expect(ActionSection).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.ts new file mode 100644 index 00000000..370055ff --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/ApplicationLogo.test.js + +import { mount } from '@vue/test-utils' +import ApplicationLogo from '../../../resources/js/Components/ApplicationLogo.vue' + + +test('ApplicationLogo.vue component imports successfully', async () => { + + expect(ApplicationLogo).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.ts new file mode 100644 index 00000000..65ba5bc3 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/ApplicationMark.test.ts + +import { mount } from '@vue/test-utils' +import ApplicationMark from '../../../resources/js/Components/ApplicationMark.vue' + + +test('ApplicationMark.vue component imports successfully', async () => { + + expect(ApplicationMark).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.ts new file mode 100644 index 00000000..e678bd96 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/AuthenticationCardLogo.test.ts + +import { mount } from '@vue/test-utils' +import AuthenticationCardLogo from '../../../resources/js/Components/AuthenticationCardLogo.vue' + + +test('AuthenticationCardLogo.vue component imports successfully', async () => { + + expect(AuthenticationCardLogo).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.ts new file mode 100644 index 00000000..7e9c20b5 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/AuthenticationCard.test.ts + +import { mount } from '@vue/test-utils' +import AuthenticationCard from '../../../resources/js/Components/AuthenticationCard.vue' + + +test('AuthenticationCard.vue component imports successfully', async () => { + + expect(AuthenticationCard).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.ts new file mode 100644 index 00000000..ae527a7e --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/Banner.test.ts + +import { mount } from '@vue/test-utils' +import Banner from '../../../resources/js/Components/Banner.vue' + + +test('Banner.vue component imports successfully', async () => { + + expect(Banner).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.ts new file mode 100644 index 00000000..188e11bd --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/Checkbox.test.ts + +import { mount } from '@vue/test-utils' +import Checkbox from '../../../resources/js/Components/Checkbox.vue' + + +test('Checkbox.vue component imports successfully', async () => { + + expect(Checkbox).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.ts new file mode 100644 index 00000000..73aa5063 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/ConfirmationModal.test.ts + +import { mount } from '@vue/test-utils' +import ConfirmationModal from '../../../resources/js/Components/ConfirmationModal.vue' + + +test('ConfirmationModal.vue component imports successfully', async () => { + + expect(ConfirmationModal).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.ts new file mode 100644 index 00000000..ec0dabea --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/ConfirmsPassword.test.ts + +import { mount } from '@vue/test-utils' +import ConfirmsPassword from '../../../resources/js/Components/ConfirmsPassword.vue' + + +test('ConfirmsPassword.vue component imports successfully', async () => { + + expect(ConfirmsPassword).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.ts new file mode 100644 index 00000000..fe330eb7 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/DangerButton.test.ts + +import { mount } from '@vue/test-utils' +import DangerButton from '../../../resources/js/Components/DangerButton.vue' + + +test('DangerButton.vue component imports successfully', async () => { + + expect(DangerButton).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.ts new file mode 100644 index 00000000..6bfd05c8 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/DialogModal.test.ts + +import { mount } from '@vue/test-utils' +import DialogModal from '../../../resources/js/Components/DialogModal.vue' + + +test('DialogModal.vue component imports successfully', async () => { + + expect(DialogModal).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.ts new file mode 100644 index 00000000..734c840f --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/DropdownLink.test.ts + +import { mount } from '@vue/test-utils' +import DropdownLink from '../../../resources/js/Components/DropdownLink.vue' + + +test('DropdownLink.vue component imports successfully', async () => { + + expect(DropdownLink).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.ts new file mode 100644 index 00000000..dcfc904f --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/Dropdown.test.ts + +import { mount } from '@vue/test-utils' +import Dropdown from '../../../resources/js/Components/Dropdown.vue' + + +test('Dropdown.vue component imports successfully', async () => { + + expect(Dropdown).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.ts new file mode 100644 index 00000000..c912aa21 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/FormSection.test.ts + +import { mount } from '@vue/test-utils' +import FormSection from '../../../resources/js/Components/FormSection.vue' + + +test('FormSection.vue component imports successfully', async () => { + + expect(FormSection).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.ts new file mode 100644 index 00000000..61551ff6 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/InputError.test.ts + +import { mount } from '@vue/test-utils' +import InputError from '../../../resources/js/Components/InputError.vue' + + +test('InputError.vue component imports successfully', async () => { + + expect(InputError).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.ts new file mode 100644 index 00000000..b7ca49f8 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/InputLabel.test.ts + +import { mount } from '@vue/test-utils' +import InputLabel from '../../../resources/js/Components/InputLabel.vue' + + +test('InputLabel.vue component imports successfully', async () => { + + expect(InputLabel).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.ts new file mode 100644 index 00000000..f615e56a --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/Modal.test.ts + +import { mount } from '@vue/test-utils' +import Modal from '../../../resources/js/Components/Modal.vue' + + +test('Modal.vue component imports successfully', async () => { + + expect(Modal).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.ts new file mode 100644 index 00000000..01b5c4a5 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/NavLink.test.ts + +import { mount } from '@vue/test-utils' +import NavLink from '../../../resources/js/Components/NavLink.vue' + + +test('NavLink.vue component imports successfully', async () => { + + expect(NavLink).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.ts new file mode 100644 index 00000000..dfc47210 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/PrimaryButton.test.ts + +import { mount } from '@vue/test-utils' +import PrimaryButton from '../../../resources/js/Components/PrimaryButton.vue' + + +test('PrimaryButton.vue component imports successfully', async () => { + + expect(PrimaryButton).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.ts new file mode 100644 index 00000000..ce3791a0 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/ResponsiveNavLink.test.ts + +import { mount } from '@vue/test-utils' +import ResponsiveNavLink from '../../../resources/js/Components/ResponsiveNavLink.vue' + + +test('ResponsiveNavLink.vue component imports successfully', async () => { + + expect(ResponsiveNavLink).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.ts new file mode 100644 index 00000000..d5187475 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/ScrollUpColorModeSection.test.ts + +import { mount } from '@vue/test-utils' +import ScrollUpColorModeSection from '../../../resources/js/Components/ScrollUpColorModeSection.vue' + + +test('ScrollUpColorModeSection.vue component imports successfully', async () => { + + expect(ScrollUpColorModeSection).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.ts new file mode 100644 index 00000000..cf95a296 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/SecondaryButton.test.ts + +import { mount } from '@vue/test-utils' +import SecondaryButton from '../../../resources/js/Components/SecondaryButton.vue' + + +test('SecondaryButton.vue component imports successfully', async () => { + + expect(SecondaryButton).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.ts new file mode 100644 index 00000000..35e06065 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/SectionBorder.test.ts + +import { mount } from '@vue/test-utils' +import SectionBorder from '../../../resources/js/Components/SectionBorder.vue' + + +test('SectionBorder.vue component imports successfully', async () => { + + expect(SectionBorder).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.ts new file mode 100644 index 00000000..b38db429 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/SectionTitle.test.ts + +import { mount } from '@vue/test-utils' +import SectionTitle from '../../../resources/js/Components/SectionTitle.vue' + + +test('SectionTitle.vue component imports successfully', async () => { + + expect(SectionTitle).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.ts new file mode 100644 index 00000000..e4ada8ee --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/TextInput.test.ts + +import { mount } from '@vue/test-utils' +import TextInput from '../../../resources/js/Components/TextInput.vue' + + +test('TextInput.vue component imports successfully', async () => { + + expect(TextInput).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.ts new file mode 100644 index 00000000..284f1804 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/Welcome.test.ts + +import { mount } from '@vue/test-utils' +import Welcome from '../../../resources/js/Components/Welcome.vue' + + +test('Welcome.vue component imports successfully', async () => { + + expect(Welcome).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.ts new file mode 100644 index 00000000..3f3de495 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.ts @@ -0,0 +1,89 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/anchors/VvAnchor.test.ts + +import { mount } from '@vue/test-utils' +import VvAnchor from '../../../../../resources/js/Components/vv/anchors/VvAnchor.vue' +import appVv from '../../../../../resources/js/app.vv' + + +test('VvAnchor.vue component imports successfully', async () => { + + expect(VvAnchor).toBeTruthy() + +}) + + +test('VvAnchor.vue component accepts a default slot value of markup and text', async () => { + + const testString = "
Test
" + + const wrapper = mount(VvAnchor, { + slots: { + default: testString, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain(testString) + +}) + + +test('VvAnchor.vue component props all work as expected', async () => { + + const wrapper = mount(VvAnchor, { + props: { + button: appVv.defaults.VvAnchor.button, + buttonBlock: appVv.defaults.VvAnchor.buttonBlock, + buttonFab: appVv.defaults.VvAnchor.buttonFab, + buttonSize: appVv.defaults.VvAnchor.buttonSize, + color: appVv.defaults.VvAnchor.color, + external: appVv.defaults.VvAnchor.external, + href: appVv.defaults.VvAnchor.href, + palette: appVv.defaults.VvAnchor.palette, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvAnchor.vue component external mode returns target="_blank" and rel="noopener noreferrer"', async () => { + + const wrapper = mount(VvAnchor, { + props: { + external: true, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvAnchor.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvAnchor, { + props: { + debug: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-anchor-') + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.ts new file mode 100644 index 00000000..6d2cce59 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.ts @@ -0,0 +1,184 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/anchors/VvInertiaLink.test.ts + +import { mount, RouterLinkStub } from '@vue/test-utils' +import { VvConfig } from '@obewds/vueventus' +import VvInertiaLink from '../../../../../resources/js/Components/vv/anchors/VvInertiaLink.vue' +import appVv from '../../../../../resources/js/app.vv' + + +test('VvInertiaLink.vue component imports successfully', async () => { + + expect(VvInertiaLink).toBeTruthy() + +}) + + +test('VvInertiaLink.vue component accepts a default slot value of markup and text', async () => { + + const testString = "
Test
" + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + }, + slots: { + default: testString, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain(testString) + +}) + + + +test('VvInertiaLink.vue component can successfully inject() a parent component provide() property "vv"', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + provide: { + vv: VvConfig, + }, + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvInertiaLink.vue component returns an expected result when prop button is true', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + button: true, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvInertiaLink.vue component returns an expected result when props button and buttonBlock are true', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + button: true, + buttonBlock: true, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvInertiaLink.vue component returns an expected result when props button and buttonFab are true', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + button: true, + buttonFab: true, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvInertiaLink.vue component returns an expected result when props button, palette, and color are defined', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + to: '/', + button: true, + palette: 'solid', + color: 'default', + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain('') + +}) + + +test('VvInertiaLink.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvInertiaLink, { + global: { + stubs: { + InertiaLink: RouterLinkStub, + }, + }, + props: { + href: '/', + debug: true, + to: '/', + }, + }) + + expect(wrapper.html()).toContain('data-vv-inertia-link-') + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.ts new file mode 100644 index 00000000..ee77ee26 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.ts @@ -0,0 +1,86 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/buttons/VvButton.test.ts + +import { mount } from '@vue/test-utils' +import VvButton from '../../../../../resources/js/Components/vv/buttons/VvButton.vue' +import appVv from '../../../../../resources/js/app.vv' + + +test('VvButton.vue component imports successfully', async () => { + + expect(VvButton).toBeTruthy() + +}) + + +test('VvButton.vue component accepts a default slot value of markup and text', async () => { + + const testString = "
Test
" + + const wrapper = mount(VvButton, { + slots: { + default: testString, + }, + }) + + expect(wrapper.html()).toContain('') + expect(wrapper.html()).toContain(testString) + +}) + + +test('VvButton.vue component type prop works as expected and validates', async () => { + + const wrapper = mount(VvButton, { + props: { type: 'submit' }, + }) + + expect(wrapper.html()).toContain('') + +}) + + +test('VvButton.vue component props all work as expected', async () => { + + const wrapper = mount(VvButton, { + props: { + block: appVv.defaults.VvButton.block, + color: appVv.defaults.VvButton.color, + fab: appVv.defaults.VvButton.fab, + palette: appVv.defaults.VvButton.palette, + size: appVv.defaults.VvButton.size, + type: appVv.defaults.VvButton.type, + }, + }) + + expect(wrapper.html()).toContain('') + +}) + + +test('VvButton.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvButton, { + props: { + debug: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-button-') + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.ts new file mode 100644 index 00000000..9a33c95b --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.ts @@ -0,0 +1,109 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/buttons/VvColorModeButton.test.ts + +import { mount } from '@vue/test-utils' +import VvColorModeButton from '../../../../../resources/js/Components/vv/buttons/VvColorModeButton.vue' + + +test('VvColorModeButton.test.vue component imports successfully', async () => { + + expect(VvColorModeButton).toBeTruthy() + +}) + + +test('VvColorModeButton.vue component returns an expected output when the mode prop = "dark"', async () => { + + const wrapper = mount(VvColorModeButton, { + props: { + mode: 'dark', + }, + }) + + expect(wrapper.html()).toContain('svg') + +}) + + +test('VvColorModeButton.vue component returns an expected output when the mode prop = "light"', async () => { + + const wrapper = mount(VvColorModeButton, { + props: { + mode: 'light', + }, + }) + + expect(wrapper.html()).toContain('svg') + +}) + + +test('VvColorModeButton.vue toggles a "dark" mode icon to a "light" mode icon and vice versa', async () => { + + const wrapper = mount(VvColorModeButton, { + props: { + mode: 'dark' + } + }) + + const initSvgPath = wrapper.find('path').html() + + await wrapper.find('button').trigger('click') + + const svgPath = wrapper.find('path').html() + + expect(initSvgPath).not.toBe(svgPath) + + await wrapper.find('button').trigger('click') + + const backToOriginalPath = wrapper.find('path').html() + + expect(initSvgPath).toBe(backToOriginalPath) + +}) + + +test('VvColorModeButton.vue component can check localStorage for a colorMode property stored during a prior user session', async () => { + + const wrapper = mount(VvColorModeButton, { + props: { + mode: 'dark', + }, + global: { + mocks: { + localStorage: { + colorMode: 'light', + setItem (key, item) { + this[key] = item + }, + getItem (key) { + return this[key] + } + } + }, + }, + }) + + expect(wrapper.html()).toContain('svg') + +}) + + +test('VvColorModeButton.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvColorModeButton, { + props: { + mode: 'dark', + debug: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-color-mode-button-') + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.ts new file mode 100644 index 00000000..05983d26 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.ts @@ -0,0 +1,62 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/buttons/VvScrollUp.test.ts + +import { mount } from '@vue/test-utils' +import VvScrollUp from '../../../../../resources/js/Components/vv/buttons/VvScrollUp.vue' + + +test('VvScrollUp.test.vue component imports successfully', async () => { + + expect(VvScrollUp).toBeTruthy() + +}) + + +test('VvScrollUp.vue component returns markup if passed a true value for the isVisible prop', async () => { + + const wrapper = mount(VvScrollUp, { + props: { + isVisible: true + }, + }) + + expect(wrapper.html()).toContain('button') + +}) + + +test('VvScrollUp.vue component is impacted by a click event as expected', async () => { + + const wrapper = mount(VvScrollUp, { + props: { + isVisible: true + }, + }) + + window.dispatchEvent(new CustomEvent('scroll', { detail: 2000 })) + + await wrapper.find('button').trigger('click') + + expect(wrapper.html()).toContain('button') + +}) + + +test('VvScrollUp.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvScrollUp, { + props: { + debug: true, + isVisible: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-scroll-up-') + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.ts new file mode 100644 index 00000000..f5199b92 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.ts @@ -0,0 +1,44 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/elements/VvEl.test.ts + +import { mount } from '@vue/test-utils' +import VvEl from '../../../../../resources/js/Components/vv/elements/VvEl.vue' + + +test('VvEl.test.vue component imports successfully', async () => { + + expect(VvEl).toBeTruthy() + +}) + + +test('VvEl.vue component accepts a tag prop that validates', async () => { + + const wrapper = mount(VvEl, { + props: { + tag: 'div', + }, + }) + + expect(wrapper.html()).toBeTruthy() + +}) + + +test('VvEl.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvEl, { + props: { + debug: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-el-') + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.ts new file mode 100644 index 00000000..a1bb685d --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/forms/VvFormGroup.test.ts + +import { mount } from '@vue/test-utils' +import VvFormGroup from '../../../../../resources/js/Components/vv/forms/VvFormGroup.vue' + + +test('VvFormGroup.test.vue component imports successfully', async () => { + + expect(VvFormGroup).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.ts new file mode 100644 index 00000000..e0a0b860 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/forms/VvQuadFormGroup.test.ts + +import { mount } from '@vue/test-utils' +import VvQuadFormGroup from '../../../../../resources/js/Components/vv/forms/VvQuadFormGroup.vue' + + +test('VvQuadFormGroup.test.vue component imports successfully', async () => { + + expect(VvQuadFormGroup).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.ts new file mode 100644 index 00000000..ba13067c --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.ts @@ -0,0 +1,50 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/inputs/VvCheckbox.test.ts + +import { mount } from '@vue/test-utils' +import { VvConfig } from '@obewds/vueventus' +import VvCheckbox from '../../../../../resources/js/Components/vv/inputs/VvCheckbox.vue' + + +test('VvCheckbox.test.vue component imports successfully', async () => { + + expect(VvCheckbox).toBeTruthy() + +}) + + + +test('VvCheckbox.vue component can successfully inject() a parent component provide() property "vv"', async () => { + + const wrapper = mount(VvCheckbox, { + global: { + provide: { + vv: VvConfig, + }, + }, + }) + + expect(wrapper.html()).toContain('input') + +}) + + +test('VvCheckbox.vue component can successfully ingest and output the expected data-test attribute value containing the passed in hex values props', async () => { + + const wrapper = mount(VvCheckbox, { + props: { + lightCheckHex: '#ffffff', + darkCheckHex: '#000000', + }, + }) + + expect(wrapper.html()).toContain('ffffff') + expect(wrapper.html()).toContain('000000') + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.ts new file mode 100644 index 00000000..f639dbec --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.ts @@ -0,0 +1,64 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/inputs/VvInput.test.ts + +import { mount } from '@vue/test-utils' +import { VvConfig } from '@obewds/vueventus' +import VvInput from '../../../../../resources/js/Components/vv/inputs/VvInput.vue' + + +test('VvInput.test.vue component imports successfully', async () => { + + expect(VvInput).toBeTruthy() + +}) + + + +test('VvInput.vue component returns a type email input using the component type prop', async () => { + + const testString = 'email' + + const wrapper = mount(VvInput, { + props: { + type: testString, + }, + }) + + expect(wrapper.html()).toContain(testString) + +}) + + + +test('VvInput.vue component can successfully inject() a parent component provide() property "vv"', async () => { + + const wrapper = mount(VvInput, { + global: { + provide: { + vv: VvConfig, + }, + }, + }) + + expect(wrapper.html()).toContain('input') + +}) + + +test('VvInput.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvInput, { + props: { + debug: true, + }, + }) + + expect(wrapper.html()).toContain('data-vv-input-') + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.ts new file mode 100644 index 00000000..2f4e5f7b --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.ts @@ -0,0 +1,35 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/inputs/VvRadio.test.ts + +import { mount } from '@vue/test-utils' +import VvRadio from '../../../../../resources/js/Components/vv/inputs/VvRadio.vue' + + +test('VvRadio.test.vue component imports successfully', async () => { + + expect(VvRadio).toBeTruthy() + +}) + + + +test('VvRadio.vue component returns a radio input using the component type prop', async () => { + + const testString = 'test-value' + + const wrapper = mount(VvRadio, { + props: { + value: testString, + checked: true, + }, + }) + + expect(wrapper.html()).toContain(testString) + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.ts new file mode 100644 index 00000000..d57ac468 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/lists/VvListItem.test.ts + +import { mount } from '@vue/test-utils' +import VvListItem from '../../../../../resources/js/Components/vv/lists/VvListItem.vue' + + +test('VvListItem.test.vue component imports successfully', async () => { + + expect(VvListItem).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.ts new file mode 100644 index 00000000..e9763bca --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.ts @@ -0,0 +1,48 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/lists/VvList.test.ts + +import { mount } from '@vue/test-utils' +import VvList from '../../../../../resources/js/Components/vv/lists/VvList.vue' + + +test('VvList.test.vue component imports successfully', async () => { + + expect(VvList).toBeTruthy() + +}) + + +test('VvList.vue component type prop works as expected and validates', async () => { + + const wrapper = mount(VvList, { + props: { + tag: 'ol' + }, + }) + + expect(wrapper.html()).toContain('
    ') + expect(wrapper.html()).toContain('
') + +}) + + +test('VvList.vue component debug mode returns an expected result', async () => { + + const wrapper = mount(VvList, { + props: { + debug: true, + tag: 'ol' + }, + }) + + expect(wrapper.html()).toContain('data-vv-list-') + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.ts new file mode 100644 index 00000000..b04ad3dd --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/selects/VvListbox.test.ts + +import { mount } from '@vue/test-utils' +import VvListbox from '../../../../../resources/js/Components/vv/selects/VvListbox.vue' + + +test('VvListbox.test.vue component imports successfully', async () => { + + expect(VvListbox).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.ts new file mode 100644 index 00000000..c833fd35 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/selects/VvSelect.test.ts + +import { mount } from '@vue/test-utils' +import VvSelect from '../../../../../resources/js/Components/vv/selects/VvSelect.vue' + + +test('VvSelect.test.vue component imports successfully', async () => { + + expect(VvSelect).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.ts b/src/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.ts new file mode 100644 index 00000000..d4ef39a6 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.ts @@ -0,0 +1,18 @@ +// ./src/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.ts + +export default function (): string { + +return `// ./tests/Components/vv/textareas/VvTextarea.test.ts + +import { mount } from '@vue/test-utils' +import VvTextarea from '../../../../../resources/js/Components/vv/textareas/VvTextarea.vue' + + +test('VvTextarea.test.vue component imports successfully', async () => { + + expect(VvTextarea).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.ts b/src/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.ts new file mode 100644 index 00000000..2ea8d177 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.ts @@ -0,0 +1,17 @@ +// ./src/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.ts + +export default function (): string { + +return `// ./tests/Vitest/Pages/Dashboard.test.ts + +import { mount } from '@vue/test-utils' +import Dashboard from '../../../resources/js/Pages/Dashboard.vue' + +test('Dashboard.vue component imports successfully', async () => { + + expect(Dashboard).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.ts b/src/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.ts new file mode 100644 index 00000000..3b7361d0 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.ts @@ -0,0 +1,17 @@ +// ./src/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.ts + +export default function (): string { + +return `// ./tests/Vitest/Pages/PrivacyPolicy.test.ts + +import { mount } from '@vue/test-utils' +import PrivacyPolicy from '../../../resources/js/Pages/PrivacyPolicy.vue' + +test('PrivacyPolicy.vue component imports successfully', async () => { + + expect(PrivacyPolicy).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.ts b/src/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.ts new file mode 100644 index 00000000..93b36fc9 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.ts @@ -0,0 +1,17 @@ +// ./src/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.ts + +export default function (): string { + +return `// ./tests/Vitest/Pages/TermsOfService.test.ts + +import { mount } from '@vue/test-utils' +import TermsOfService from '../../../resources/js/Pages/TermsOfService.vue' + +test('TermsOfService.vue component imports successfully', async () => { + + expect(TermsOfService).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.ts b/src/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.ts new file mode 100644 index 00000000..3246a966 --- /dev/null +++ b/src/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.ts @@ -0,0 +1,17 @@ +// ./src/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.ts + +export default function (): string { + +return `// ./tests/Vitest/Pages/VueVentus.test.ts + +import { mount } from '@vue/test-utils' +import VueVentus from '../../../resources/js/Pages/VueVentus.vue' + +test('VueVentus.vue component imports successfully', async () => { + + expect(VueVentus).toBeTruthy() + +}) +`; + +} diff --git a/src/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.ts b/src/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.ts index 688a48c3..b0ffd690 100644 --- a/src/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.ts +++ b/src/generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.ts @@ -7,8 +7,6 @@ return `// ./tests/Vitest/Pages/Welcome.test.ts import { mount } from '@vue/test-utils' import Welcome from '../../../resources/js/Pages/Welcome.vue' -import '../../../resources/js/fontAwesomePro' - test('Welcome.vue component imports successfully', async () => { expect(Welcome).toBeTruthy() diff --git a/src/helpers/select-installation.ts b/src/helpers/select-installation.ts index 1cafec97..c2c7aa14 100644 --- a/src/helpers/select-installation.ts +++ b/src/helpers/select-installation.ts @@ -4,12 +4,12 @@ import inquirer from 'inquirer' import viltDsBrand from '../helpers/vilt-ds-brand.js' -export type ViltDsInstallationChoice = 'Install VILT DS Into A Laravel Jetstream Starter App' | null +export type ViltDsInstallationChoice = 'Install VILT DS and Vitest TS Tests Into A Laravel Jetstream Starter App' | null export default async function (): Promise { let choices: Array = [ - 'Install VILT DS Into A Laravel Jetstream Starter App', + 'Install VILT DS and Vitest TS Tests Into A Laravel Jetstream Starter App', ] const answers = await inquirer.prompt({ diff --git a/src/index.ts b/src/index.ts index fd6fe358..dd2b6879 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,6 +20,6 @@ console.log(' ') // For a standard installation with an existing // Laravel + Jetstream install in a current working (root) directory -if (userInstallation === 'Install VILT DS Into A Laravel Jetstream Starter App') { +if (userInstallation === 'Install VILT DS and Vitest TS Tests Into A Laravel Jetstream Starter App') { installViltDsJetstream() } diff --git a/src/installers/install-vilt-ds-jetstream.ts b/src/installers/install-vilt-ds-jetstream.ts index 6372e2fa..cd216bb3 100644 --- a/src/installers/install-vilt-ds-jetstream.ts +++ b/src/installers/install-vilt-ds-jetstream.ts @@ -51,13 +51,18 @@ import generateVitestSetupTs from '../generators/jetstream/generate-vitest-setup import generateVitestZiggyRouteShimDTs from '../generators/jetstream/generate-vitest-ziggy-route-shim-d-ts.js' // import laravel and vueventus updatable files to be installed -import vueventus from '../updaters/vueventus.js' import jetstreamBaseComponents from '../updaters/jetstream-base-components.js' import jetstreamApi from '../updaters/jetstream-api.js' import jetstreamAuth from '../updaters/jetstream-auth.js' import jetstreamProfile from '../updaters/jetstream-profile.js' import jetstreamTeams from '../updaters/jetstream-teams.js' import jetstreamBasePages from '../updaters/jetstream-base-pages.js' +import vueventus from '../updaters/vueventus.js' + +// import vitest typescript tests for laravel and vueventus components to be installed +import jetstreamBaseComponentTests from '../updaters/jetstream-base-component-tests.js' +import jetstreamBasePageTests from '../updaters/jetstream-base-page-tests.js' +import vueventusTests from '../updaters/vueventus-tests.js' // import suggested VS Code Extensions for VILT DS import viltDsVscodeExtensions from '../data/ide/vilt-ds-vscode-extensions.js' @@ -121,6 +126,11 @@ export default function (): void { jetstreamTeams() jetstreamBasePages() + // install vitest typescript tests for laravel and vueventus components + jetstreamBaseComponentTests() + jetstreamBasePageTests() + vueventusTests() + // install suggested VS Code Extensions for VILT DS installFile( '/.vscode/extensions.json', JSON.stringify(viltDsVscodeExtensions, null, 4) ) diff --git a/src/update-jetstream-base-component-tests.ts b/src/update-jetstream-base-component-tests.ts new file mode 100644 index 00000000..3f926ed4 --- /dev/null +++ b/src/update-jetstream-base-component-tests.ts @@ -0,0 +1,6 @@ +#!/usr/bin/env node +// ./src/update-jetstream-base-component-tests.ts + +import jetstreamBaseComponentTests from './updaters/jetstream-base-component-tests.js' + +jetstreamBaseComponentTests() diff --git a/src/update-jetstream-base-page-tests.ts b/src/update-jetstream-base-page-tests.ts new file mode 100644 index 00000000..89829123 --- /dev/null +++ b/src/update-jetstream-base-page-tests.ts @@ -0,0 +1,6 @@ +#!/usr/bin/env node +// ./src/update-jetstream-base-page-tests.ts + +import jetstreamBasePageTests from './updaters/jetstream-base-page-tests.js' + +jetstreamBasePageTests() diff --git a/src/update-vueventus-tests.ts b/src/update-vueventus-tests.ts new file mode 100644 index 00000000..f4e0a8bb --- /dev/null +++ b/src/update-vueventus-tests.ts @@ -0,0 +1,6 @@ +#!/usr/bin/env node +// ./src/update-vueventus-tests.ts + +import vueventusTests from './updaters/vueventus-tests.js' + +vueventusTests() diff --git a/src/updaters/jetstream-base-component-tests.ts b/src/updaters/jetstream-base-component-tests.ts new file mode 100644 index 00000000..eb129a88 --- /dev/null +++ b/src/updaters/jetstream-base-component-tests.ts @@ -0,0 +1,63 @@ +// ./src/updaters/jetstream-base-component-tests.ts + +import installFile from '../helpers/install-file.js' + +import generateActionMessageTestTs from '../generators/jetstream/tests/Vitest/Components/generate-action-message-test-ts.js' +import generateActionSectionTestTs from '../generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.js' +import generateApplicationLogoTestTs from '../generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.js' +import generateApplicationMarkTestTs from '../generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.js' +import generateAuthenticationCardLogoTestTs from '../generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.js' +import generateAuthenticationCardTestTs from '../generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.js' +import generateBannerTestTs from '../generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.js' +import generateCheckboxTestTs from '../generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.js' +import generateConfirmationModalTestTs from '../generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.js' +import generateConfirmationPasswordTestTs from '../generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.js' +import generateDangerButtonTestTs from '../generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.js' +import generateDialogModalTestTs from '../generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.js' +import generateDropdownLinkTestTs from '../generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.js' +import generateDropdownTestTs from '../generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.js' +import generateFormSectionTestTs from '../generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.js' +import generateInputErrorTestTs from '../generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.js' +import generateInputLabelTestTs from '../generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.js' +import generateModalTestTs from '../generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.js' +import generateNavLinkTestTs from '../generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.js' +import generatePrimaryButtonTestTs from '../generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.js' +import generateResponsiveNavLinkTestTs from '../generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.js' +import generateScrollUpColorModeSectionTestTs from '../generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.js' +import generateSecondaryButtonTestTs from '../generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.js' +import generateSectionBorderTestTs from '../generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.js' +import generateSectionTitleTestTs from '../generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.js' +import generateTextInputTestTs from '../generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.js' +import generateWelcomeTestTs from '../generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.js' + +export default function (): void { + + installFile( '/tests/Vitest/Components/ActionMessage.test.js', generateActionMessageTestTs() ) + installFile( '/tests/Vitest/Components/ActionSection.test.js', generateActionSectionTestTs() ) + installFile( '/tests/Vitest/Components/ApplicationLogo.test.js', generateApplicationLogoTestTs() ) + installFile( '/tests/Vitest/Components/ApplicationMark.test.js', generateApplicationMarkTestTs() ) + installFile( '/tests/Vitest/Components/AuthenticationCardLogo.test.js', generateAuthenticationCardLogoTestTs() ) + installFile( '/tests/Vitest/Components/AuthenticationCard.test.js', generateAuthenticationCardTestTs() ) + installFile( '/tests/Vitest/Components/Banner.test.js', generateBannerTestTs() ) + installFile( '/tests/Vitest/Components/Checkbox.test.js', generateCheckboxTestTs() ) + installFile( '/tests/Vitest/Components/ConfirmationModal.test.js', generateConfirmationModalTestTs() ) + installFile( '/tests/Vitest/Components/ConfirmationPassword.test.js', generateConfirmationPasswordTestTs() ) + installFile( '/tests/Vitest/Components/DangerButton.test.js', generateDangerButtonTestTs() ) + installFile( '/tests/Vitest/Components/DialogModal.test.js', generateDialogModalTestTs() ) + installFile( '/tests/Vitest/Components/DropdownLink.test.js', generateDropdownLinkTestTs() ) + installFile( '/tests/Vitest/Components/Dropdown.test.js', generateDropdownTestTs() ) + installFile( '/tests/Vitest/Components/FormSection.test.js', generateFormSectionTestTs() ) + installFile( '/tests/Vitest/Components/InputError.test.js', generateInputErrorTestTs() ) + installFile( '/tests/Vitest/Components/InputLabel.test.js', generateInputLabelTestTs() ) + installFile( '/tests/Vitest/Components/Modal.test.js', generateModalTestTs() ) + installFile( '/tests/Vitest/Components/NavLink.test.js', generateNavLinkTestTs() ) + installFile( '/tests/Vitest/Components/PrimaryButton.test.js', generatePrimaryButtonTestTs() ) + installFile( '/tests/Vitest/Components/ResponsiveNavLink.test.js', generateResponsiveNavLinkTestTs() ) + installFile( '/tests/Vitest/Components/ScrollUpColorModeSection.test.js', generateScrollUpColorModeSectionTestTs() ) + installFile( '/tests/Vitest/Components/SecondaryButton.test.js', generateSecondaryButtonTestTs() ) + installFile( '/tests/Vitest/Components/SectionBorder.test.js', generateSectionBorderTestTs() ) + installFile( '/tests/Vitest/Components/SectionTitle.test.js', generateSectionTitleTestTs() ) + installFile( '/tests/Vitest/Components/TextInput.test.js', generateTextInputTestTs() ) + installFile( '/tests/Vitest/Components/Welcome.test.js', generateWelcomeTestTs() ) + +} diff --git a/src/updaters/jetstream-base-components.ts b/src/updaters/jetstream-base-components.ts index 84d7f81b..c16dac8c 100644 --- a/src/updaters/jetstream-base-components.ts +++ b/src/updaters/jetstream-base-components.ts @@ -2,7 +2,6 @@ import installFile from '../helpers/install-file.js' -// import component generators import generateActionMessageVue from '../generators/jetstream/resources/js/Components/generate-action-message-vue.js' import generateActionSectionVue from '../generators/jetstream/resources/js/Components/generate-action-section-vue.js' import generateApplicationLogoVue from '../generators/jetstream/resources/js/Components/generate-application-logo-vue.js' @@ -31,12 +30,8 @@ import generateSectionTitleVue from '../generators/jetstream/resources/js/Compon import generateTextInputVue from '../generators/jetstream/resources/js/Components/generate-text-input-vue.js' import generateWelcomeVue from '../generators/jetstream/resources/js/Components/generate-welcome-vue.js' -// import vitest test generators for each component -import generateActionMessageTestTs from '../generators/jetstream/tests/Vitest/Components/generate-action-message-test-ts.js' // generate-action-message-test-ts.ts - export default function (): void { - - // install component generators + installFile( '/resources/js/Components/ActionMessage.vue', generateActionMessageVue() ) installFile( '/resources/js/Components/ActionSection.vue', generateActionSectionVue() ) installFile( '/resources/js/Components/ApplicationLogo.vue', generateApplicationLogoVue() ) @@ -65,7 +60,4 @@ export default function (): void { installFile( '/resources/js/Components/TextInput.vue', generateTextInputVue() ) installFile( '/resources/js/Components/Welcome.vue', generateWelcomeVue() ) - // install vitest test generators for each component - installFile( '/tests/Vitest/Components/ActionMessage.test.ts', generateActionMessageTestTs() ) - } diff --git a/src/updaters/jetstream-base-page-tests.ts b/src/updaters/jetstream-base-page-tests.ts new file mode 100644 index 00000000..2714a637 --- /dev/null +++ b/src/updaters/jetstream-base-page-tests.ts @@ -0,0 +1,19 @@ +// ./src/updaters/jetstream-base-page-tests.ts + +import installFile from '../helpers/install-file.js' + +import generateDashboardTestTs from '../generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.js' +import generatePrivacyPolicyTestTs from '../generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.js' +import generateTermsOfServiceTestTs from '../generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.js' +import generateVueVentusTestTs from '../generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.js' +import generateWelcomeTestTs from '../generators/jetstream/tests/Vitest/Pages/generate-welcome-test-ts.js' + +export default function (): void { + + installFile( '/tests/Vitest/Pages/Dashboard.vue', generateDashboardTestTs() ) + installFile( '/tests/Vitest/Pages/PrivacyPolicy.vue', generatePrivacyPolicyTestTs() ) + installFile( '/tests/Vitest/Pages/TermsOfService.vue', generateTermsOfServiceTestTs() ) + installFile( '/tests/Vitest/Pages/VueVentus.vue', generateVueVentusTestTs() ) + installFile( '/tests/Vitest/Pages/Welcome.vue', generateWelcomeTestTs() ) + +} diff --git a/src/updaters/vueventus-tests.ts b/src/updaters/vueventus-tests.ts new file mode 100644 index 00000000..76c4d200 --- /dev/null +++ b/src/updaters/vueventus-tests.ts @@ -0,0 +1,41 @@ +// ./src/updaters/vueventus-tests.ts + +import installFile from '../helpers/install-file.js' + +import generateVvAnchorTestTs from '../generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.js' +import generateVvInertiaLinkTestTs from '../generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.js' +import generateVvButtonTestTs from '../generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.js' +import generateVvColorModeButtonTestTs from '../generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.js' +import generateVvScrollUpTestTs from '../generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.js' +import generateVvElTestTs from '../generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.js' +import generateVvFormGroupTestTs from '../generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.js' +import generateVvQuadFormGroupTestTs from '../generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.js' +import generateVvCheckboxTestTs from '../generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.js' +import generateVvInputTestTs from '../generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.js' +import generateVvRadioTestTs from '../generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.js' +import generateVvListItemTestTs from '../generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.js' +import generateVvListTestTs from '../generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.js' +import generateVvListboxTestTs from '../generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.js' +import generateVvSelectTestTs from '../generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.js' +import generateVvTextareaTestTs from '../generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.js' + +export default function (): void { + + installFile( '/test/Vitest/Components/vv/anchors/VvAnchor.test.ts', generateVvAnchorTestTs() ) + installFile( '/test/Vitest/Components/vv/anchors/VvInertiaLink.test.ts', generateVvInertiaLinkTestTs() ) + installFile( '/test/Vitest/Components/vv/buttons/VvButton.test.ts', generateVvButtonTestTs() ) + installFile( '/test/Vitest/Components/vv/buttons/VvColorModeButton.test.ts', generateVvColorModeButtonTestTs() ) + installFile( '/test/Vitest/Components/vv/buttons/VvScrollUp.test.ts', generateVvScrollUpTestTs() ) + installFile( '/test/Vitest/Components/vv/elements/VvEl.test.ts', generateVvElTestTs() ) + installFile( '/test/Vitest/Components/vv/forms/VvFormGroup.test.ts', generateVvFormGroupTestTs() ) + installFile( '/test/Vitest/Components/vv/forms/VvQuadFormGroup.test.ts', generateVvQuadFormGroupTestTs() ) + installFile( '/test/Vitest/Components/vv/inputs/VvCheckbox.test.ts', generateVvCheckboxTestTs() ) + installFile( '/test/Vitest/Components/vv/inputs/VvInput.test.ts', generateVvInputTestTs() ) + installFile( '/test/Vitest/Components/vv/inputs/VvRadio.test.ts', generateVvRadioTestTs() ) + installFile( '/test/Vitest/Components/vv/lists/VvListItem.test.ts', generateVvListItemTestTs() ) + installFile( '/test/Vitest/Components/vv/lists/VvList.test.ts', generateVvListTestTs() ) + installFile( '/test/Vitest/Components/vv/selects/VvListbox.test.ts', generateVvListboxTestTs() ) + installFile( '/test/Vitest/Components/vv/selects/VvSelect.test.ts', generateVvSelectTestTs() ) + installFile( '/test/Vitest/Components/vv/textareas/VvTextarea.test.ts', generateVvTextareaTestTs() ) + +} diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.test.ts new file mode 100644 index 00000000..ebc53d29 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateActionSectionTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-action-section-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateActionSectionTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateActionSectionTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.test.ts new file mode 100644 index 00000000..3bdd39ce --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateApplicationLogoTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-application-logo-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateApplicationLogoTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateApplicationLogoTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.test.ts new file mode 100644 index 00000000..bb712c9a --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateApplicationMarkTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-application-mark-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateApplicationMarkTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateApplicationMarkTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.test.ts new file mode 100644 index 00000000..707002a5 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateAuthenticationCardLogoTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-logo-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateAuthenticationCardLogoTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateAuthenticationCardLogoTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.test.ts new file mode 100644 index 00000000..3d3ec39c --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateAuthenticationCardTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-authentication-card-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateAuthenticationCardTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateAuthenticationCardTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.test.ts new file mode 100644 index 00000000..38e1d711 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateBannerTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-banner-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateBannerTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateBannerTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.test.ts new file mode 100644 index 00000000..7b10a2f0 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateCheckboxTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-checkbox-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateCheckboxTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateCheckboxTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.test.ts new file mode 100644 index 00000000..47d0628e --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateConfirmationModalTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-confirmation-modal-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateConfirmationModalTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateConfirmationModalTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.test.ts new file mode 100644 index 00000000..e9a9ccca --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateConfirmationPasswordTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-confirmation-password-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateConfirmationPasswordTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateConfirmationPasswordTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.test.ts new file mode 100644 index 00000000..2d5ff4fd --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateDangerButtonTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-danger-button-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateDangerButtonTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateDangerButtonTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.test.ts new file mode 100644 index 00000000..cdb17dad --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateDialogModalTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-dialog-modal-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateDialogModalTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateDialogModalTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.test.ts new file mode 100644 index 00000000..32194e05 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateDropdownLinkTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-dropdown-link-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateDropdownLinkTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateDropdownLinkTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.test.ts new file mode 100644 index 00000000..199c265d --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateDropdownTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-dropdown-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateDropdownTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateDropdownTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.test.ts new file mode 100644 index 00000000..d5e0ffe6 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateFormActionTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-form-section-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateFormActionTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateFormActionTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.test.ts new file mode 100644 index 00000000..b43b8d79 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateInputErrorTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-input-error-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateInputErrorTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateInputErrorTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.test.ts new file mode 100644 index 00000000..3f03e840 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateInputLabelTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-input-label-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateInputLabelTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateInputLabelTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.test.ts new file mode 100644 index 00000000..8f72104d --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateModalTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-modal-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateModalTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateModalTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.test.ts new file mode 100644 index 00000000..b6f406f9 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateNavLinkTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-nav-link-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateNavLinkTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateNavLinkTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.test.ts new file mode 100644 index 00000000..e11065b5 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generatePrimaryButtonTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-primary-button-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generatePrimaryButtonTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generatePrimaryButtonTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.test.ts new file mode 100644 index 00000000..107ebd57 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateResponsiveNavLinkTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-responsive-nav-link-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateResponsiveNavLinkTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateResponsiveNavLinkTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.test.ts new file mode 100644 index 00000000..9890f347 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateScrollUpColorModeSectionTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-scroll-up-color-mode-section-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateScrollUpColorModeSectionTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateScrollUpColorModeSectionTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.test.ts new file mode 100644 index 00000000..b59bf1a0 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateSecondaryButtonTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-secondary-button-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateSecondaryButtonTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateSecondaryButtonTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.test.ts new file mode 100644 index 00000000..89bb0f4e --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateSectionBorderTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-section-border-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateSectionBorderTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateSectionBorderTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.test.ts new file mode 100644 index 00000000..5459ef8e --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateSectionTitleTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-section-title-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateSectionTitleTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateSectionTitleTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.test.ts new file mode 100644 index 00000000..99344bb7 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateTextInputTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-text-input-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateTextInputTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateTextInputTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.test.ts new file mode 100644 index 00000000..798cf23d --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateWelcomeTest from '../../../../../../src/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-welcome-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateWelcomeTest).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateWelcomeTest() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.test.ts new file mode 100644 index 00000000..aa43b8dc --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvAnchorTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-anchor-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-anchor-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvAnchorTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvAnchorTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.test.ts new file mode 100644 index 00000000..98a17788 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvInertiaLinkTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/anchors/generate-vv-inertia-link-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-inertia-link-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvInertiaLinkTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvInertiaLinkTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.test.ts new file mode 100644 index 00000000..fe63cb40 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvButtonTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-button-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-button-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvButtonTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvButtonTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.test.ts new file mode 100644 index 00000000..6a0bf565 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvColorModeButtonTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-color-mode-button-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-color-mode-button-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvColorModeButtonTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvColorModeButtonTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.test.ts new file mode 100644 index 00000000..92b60a5e --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvColorModeButtonTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/buttons/generate-vv-scroll-up-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-scroll-up-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvColorModeButtonTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvColorModeButtonTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.test.ts new file mode 100644 index 00000000..e77328a4 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvElTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/elements/generate-vv-el-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-el-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvElTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvElTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.test.ts new file mode 100644 index 00000000..a94f7520 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvFormGroupTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-form-group-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-form-group-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvFormGroupTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvFormGroupTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.test.ts new file mode 100644 index 00000000..67308435 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvFormGroupTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/forms/generate-vv-quad-form-group-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-quad-form-group-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvFormGroupTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvFormGroupTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.test.ts new file mode 100644 index 00000000..4ebd37fd --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvCheckboxTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-checkbox-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-checkbox-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvCheckboxTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvCheckboxTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.test.ts new file mode 100644 index 00000000..a5092bc2 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvInputTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-input-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-input-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvInputTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvInputTestTs() === 'string').toBe(true) + + }) + +}) \ No newline at end of file diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.test.ts new file mode 100644 index 00000000..09b33a3e --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvRadioTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/inputs/generate-vv-radio-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-radio-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvRadioTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvRadioTestTs() === 'string').toBe(true) + + }) + +}) \ No newline at end of file diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.test.ts new file mode 100644 index 00000000..afdd726b --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvListItemTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-item-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-list-item-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvListItemTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvListItemTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.test.ts new file mode 100644 index 00000000..12e6e8c8 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvListTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/lists/generate-vv-list-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-list-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvListTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvListTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.test.ts new file mode 100644 index 00000000..2b80bc95 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvListboxTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-listbox-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-listbox-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvListboxTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvListboxTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.test.ts new file mode 100644 index 00000000..b806e5c7 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvSelectTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/selects/generate-vv-select-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-select-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvSelectTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvSelectTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.test.ts new file mode 100644 index 00000000..e55359e3 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVvButtonTestTs from '../../../../../../../../src/generators/jetstream/tests/Vitest/Components/vv/textareas/generate-vv-textarea-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Components/generate-vv-textarea-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVvButtonTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVvButtonTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.test.ts new file mode 100644 index 00000000..912f7c56 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateDashboardTestTs from '../../../../../../src/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Pages/generate-dashboard-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateDashboardTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateDashboardTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.test.ts new file mode 100644 index 00000000..14a3b14f --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generatePrivacyPolicyTestTs from '../../../../../../src/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Pages/generate-privacy-policy-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generatePrivacyPolicyTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generatePrivacyPolicyTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.test.ts new file mode 100644 index 00000000..ce8a0874 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateTermsOfServiceTestTs from '../../../../../../src/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Pages/generate-terms-of-service-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateTermsOfServiceTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateTermsOfServiceTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.test.ts b/tests/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.test.ts new file mode 100644 index 00000000..59f0f197 --- /dev/null +++ b/tests/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.test.ts @@ -0,0 +1,20 @@ +// ./tests/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts.test.ts + +import { describe, expect, test } from '@jest/globals' +import generateVueVentusTestTs from '../../../../../../src/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts' + +describe('./src/generators/jetstream/tests/Vitest/Pages/generate-vue-ventus-test-ts module', () => { + + test('module can be imported and a value can be accessed successfully', () => { + + expect(generateVueVentusTestTs).toBeTruthy() + + }) + + test('module default value is a valid string', () => { + + expect(typeof generateVueVentusTestTs() === 'string').toBe(true) + + }) + +}) diff --git a/tests/updaters/jetstream-base-component-tests.test.ts b/tests/updaters/jetstream-base-component-tests.test.ts new file mode 100644 index 00000000..c09df356 --- /dev/null +++ b/tests/updaters/jetstream-base-component-tests.test.ts @@ -0,0 +1,15 @@ +// ./tests/updaters/jetstream-base-component-tests.test.ts + +import { describe, expect, test } from '@jest/globals' +import jetstreamBaseComponentTests from '../../src/updaters/jetstream-base-component-tests' + + +describe('./src/updaters/jetstream-base-component-tests module', () => { + + test('module can be imported successfully', () => { + + expect(jetstreamBaseComponentTests).toBeTruthy() + + }) + +}) diff --git a/tests/updaters/jetstream-base-page-tests.test.ts b/tests/updaters/jetstream-base-page-tests.test.ts new file mode 100644 index 00000000..afab8dab --- /dev/null +++ b/tests/updaters/jetstream-base-page-tests.test.ts @@ -0,0 +1,15 @@ +// ./tests/updaters/jetstream-base-page-tests.test.ts + +import { describe, expect, test } from '@jest/globals' +import jetstreamBasePageTests from '../../src/updaters/jetstream-base-page-tests' + + +describe('./src/updaters/jetstream-base-page-tests module', () => { + + test('module can be imported successfully', () => { + + expect(jetstreamBasePageTests).toBeTruthy() + + }) + +}) diff --git a/tests/updaters/vueventus-tests.test.ts b/tests/updaters/vueventus-tests.test.ts new file mode 100644 index 00000000..4613a3ad --- /dev/null +++ b/tests/updaters/vueventus-tests.test.ts @@ -0,0 +1,15 @@ +// ./tests/updaters/vueventus-tests.test.ts + +import { describe, expect, test } from '@jest/globals' +import vueventusTests from '../../src/updaters/vueventus-tests' + + +describe('./src/updaters/vueventus-tests module', () => { + + test('module can be imported successfully', () => { + + expect(vueventusTests).toBeTruthy() + + }) + +})