mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-24 20:09:02 +00:00
Hanzo CI/CD / test (linux-amd64) (push) Skipped
Hanzo CI/CD / test (linux-arm64) (push) Skipped
Hanzo CI/CD / test-advisory (push) Skipped
Hanzo CI/CD / test-amd64 (push) Successful in 7m17s
Hanzo CI/CD / cicd (push) Successful in 27m37s
CI/CD / cicd (push) Successful in 34m59s
On the forge runner the checkout carries the hanzo-docs/studio-docs submodule, whose pages name its own /api/ paths, so no-api-prefix.test skips studio/ as it skips the projects/ mirror. The runner's sandbox parses the API document slower than vitest's 5s default, so the docs project allows a minute per test. Co-authored-by: Hanzo Dev <[email protected]>
44 lines
1.6 KiB
TypeScript
44 lines
1.6 KiB
TypeScript
import { defineConfig } from 'vitest/config';
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
'packages/*',
|
|
// `apps/docs` and not `apps/*`: apps/platform/e2e holds Playwright specs,
|
|
// which are not vitest's to run.
|
|
//
|
|
// Spelled as a config rather than a path because of the exclude: the docs
|
|
// app carries content/docs/projects, a MIRROR of other repos' docs, and
|
|
// some of those repos ship their tutorial code — tests included, which
|
|
// expect that repo's fixtures and working directory. Running them here
|
|
// reported a red suite for two eslint tutorials that were never ours and
|
|
// that nothing in this repo can fix. We publish those pages; we do not own
|
|
// their test runs.
|
|
//
|
|
// `e2e/` is Playwright's (`pnpm --filter docs test:e2e`): those specs
|
|
// drive a browser against a running site, which vitest has no way to give
|
|
// them.
|
|
{
|
|
test: {
|
|
name: 'docs',
|
|
root: './apps/docs',
|
|
exclude: ['**/node_modules/**', '**/dist/**', 'content/docs/projects/**', 'e2e/**'],
|
|
// Several tests parse the whole API document. A sandboxed CI runner
|
|
// takes longer than vitest's 5s default for that; a minute still
|
|
// catches a test that hangs.
|
|
testTimeout: 60_000,
|
|
},
|
|
},
|
|
// The bot docs' converter, and nothing under content/: those pages are
|
|
// the bot repo's, converted, not code.
|
|
{
|
|
test: {
|
|
name: 'bot-docs',
|
|
root: './apps/bot-docs',
|
|
include: ['scripts/**/*.test.ts'],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|