Add in the loop test for navigable pages, plus test workflow
Some checks failed
Build and Test - Staging / test (pull_request) Failing after 27s
Build and Test - Staging / build_and_push (pull_request) Has been skipped
Build and Test - Staging / deploy_staging (pull_request) Has been skipped

This commit is contained in:
2025-11-09 15:45:15 -08:00
parent 6bb862e6e5
commit 2d7f2904a8
8 changed files with 131 additions and 99 deletions

View File

@@ -1,15 +1,23 @@
/// <reference types="vitest" />
// import {getViteConfig} from 'astro/config';
//
// export default getViteConfig(
// {
// test: {
// /* for example, use global to avoid globals imports (describe, test, expect): */
// // globals: true,
// },
// },
// {
// site: 'https://caperren.com/',
// trailingSlash: 'always',
// },
// );
import path from 'path';
import {getViteConfig} from 'astro/config';
export default getViteConfig(
{
test: {
exclude: [
"test-e2e/**",
"node_modules/**",
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
},
},
/* for example, use global to avoid globals imports (describe, test, expect): */
// globals: true,
},
},
{
site: 'https://caperren.com/'
},
);