scaffold blog_portal vue 3 + pinia + cypress frontend
Mirrors youngstartup/frontend/startups_portal scaffolding: Vite, Vue 3 (composition API + script setup), TypeScript strict, Pinia, Vue Router 5, oxlint + eslint + oxfmt, and Cypress with db:reset / db:seed tasks. Views and the auth store are stubs filled in by the next branches; routes and the header chrome are wired so the build passes.
This commit is contained in:
parent
6f95a5b7b8
commit
568dc4aabe
27 changed files with 8376 additions and 0 deletions
21
frontend/blog_portal/cypress/support/commands.ts
Normal file
21
frontend/blog_portal/cypress/support/commands.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/// <reference types="cypress" />
|
||||
|
||||
declare global {
|
||||
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||||
namespace Cypress {
|
||||
interface Chainable {
|
||||
resetDb(): Chainable<null>;
|
||||
seedDb(): Chainable<null>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Cypress.Commands.add("resetDb", function () {
|
||||
return cy.task<null>("db:reset");
|
||||
});
|
||||
|
||||
Cypress.Commands.add("seedDb", function () {
|
||||
return cy.task<null>("db:seed");
|
||||
});
|
||||
|
||||
export {};
|
||||
17
frontend/blog_portal/cypress/support/e2e.ts
Normal file
17
frontend/blog_portal/cypress/support/e2e.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// ***********************************************************
|
||||
// This example support/e2e.ts is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
import './commands'
|
||||
Loading…
Add table
Add a link
Reference in a new issue