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.
29 lines
715 B
TypeScript
29 lines
715 B
TypeScript
import { defineConfig } from "cypress";
|
|
import { execSync } from "node:child_process";
|
|
import { resolve } from "node:path";
|
|
|
|
const backendDir = resolve(__dirname, "../../backend");
|
|
|
|
export default defineConfig({
|
|
e2e: {
|
|
baseUrl: "http://localhost:5173",
|
|
setupNodeEvents(on) {
|
|
on("task", {
|
|
"db:reset": function () {
|
|
execSync("php artisan migrate:fresh --force", {
|
|
cwd: backendDir,
|
|
stdio: "pipe",
|
|
});
|
|
return null;
|
|
},
|
|
"db:seed": function () {
|
|
execSync("php artisan db:seed --force", {
|
|
cwd: backendDir,
|
|
stdio: "pipe",
|
|
});
|
|
return null;
|
|
},
|
|
});
|
|
},
|
|
},
|
|
});
|