mirror of
https://github.com/bmad-code-org/BMAD-METHOD.git
synced 2026-08-28 19:20:41 +08:00
chore(test): colocate website tests with the Astro site
This commit is contained in:
+1
-1
@@ -38,7 +38,7 @@
|
||||
"test:refs": "uv run --python 3.11 --with \"pyyaml>=6.0.2,<7\" python -m unittest tools/tests/test_validate_file_refs.py",
|
||||
"test:renderer": "uv run --python 3.11 python -m unittest skills/bmad/scripts/tests/test_config_utils.py skills/bmad/scripts/tests/test_resolve_config.py skills/bmad/scripts/tests/test_resolve_customization.py && node test/test-build-auto-renderer.js",
|
||||
"test:retrospective": "uv run --python 3.11 skills/bmad-retrospective/scripts/tests/test_git_evidence.py && uv run --python 3.11 skills/bmad-retrospective/scripts/tests/test_sprint_status.py",
|
||||
"test:site-url": "node test/test-site-url.mjs",
|
||||
"test:site-url": "node website/test/test-site-url.mjs",
|
||||
"test:skills": "uv run --python 3.11 python -m unittest tools/tests/test_validate_skills.py",
|
||||
"test:sprint-planning": "uv run --python 3.11 skills/bmad-sprint-planning/scripts/tests/test_sprint_plan.py && node test/test-template-sync.js",
|
||||
"validate:refs": "uv run --python 3.11 tools/validate_file_refs.py --strict",
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
* - Raw HTML rewriting
|
||||
* - Integration (both plugins together)
|
||||
*
|
||||
* Usage: node test/test-rehype-plugins.mjs
|
||||
* Usage: node website/test/test-rehype-plugins.mjs
|
||||
*/
|
||||
|
||||
import rehypeMarkdownLinks, { findFirstDelimiter, detectContentDir } from '../website/src/rehype-markdown-links.js';
|
||||
import rehypeBasePaths from '../website/src/rehype-base-paths.js';
|
||||
import rehypeMarkdownLinks, { findFirstDelimiter, detectContentDir } from '../src/rehype-markdown-links.js';
|
||||
import rehypeBasePaths from '../src/rehype-base-paths.js';
|
||||
|
||||
// ANSI colors
|
||||
const colors = {
|
||||
@@ -1,11 +1,11 @@
|
||||
/**
|
||||
* Site URL resolver regression tests.
|
||||
*
|
||||
* Usage: node test/test-site-url.mjs
|
||||
* Usage: node website/test/test-site-url.mjs
|
||||
*/
|
||||
|
||||
import assert from 'node:assert/strict';
|
||||
import { getSiteUrl } from '../website/src/lib/site-url.mjs';
|
||||
import { getSiteUrl } from '../src/lib/site-url.mjs';
|
||||
|
||||
const originalSiteUrl = process.env.SITE_URL;
|
||||
const originalRepository = process.env.GITHUB_REPOSITORY;
|
||||
Reference in New Issue
Block a user