The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
ci: treat markdown under test and fixture directories as code
Maurice3643696a11dc
diff --git a/scripts/ci/changed-areas.mjs b/scripts/ci/changed-areas.mjsindex 87f63aeba..0269f53bf 100644--- a/scripts/ci/changed-areas.mjs+++ b/scripts/ci/changed-areas.mjs@@ -72,8 +72,11 @@ export const AREAS = {// Markdown outside wiki/ (the root README, CLAUDE.md, the package READMEs,// PATTERN.md) changes no test, no build and no scan. The wiki does: the image// ships it as the in-app help and tests read its pages and headings, so a-// wiki page is classified like any other file.-const isInertMarkdown = (path) => path.endsWith('.md') && !path.startsWith('wiki/');+// wiki page is classified like any other file. So does Markdown inside a test+// or fixture directory (server/tests/fixtures/wiki/ feeds wiki.test.ts): it is+// test input, and a change to it has to run the tests that read it.+const TEST_INPUT_DIR = /(^|\/)(tests?|fixtures)\//;+const isInertMarkdown = (path) => path.endsWith('.md') && !path.startsWith('wiki/') && !TEST_INPUT_DIR.test(path);function matches(rule, path) {if (rule instanceof RegExp) return rule.test(path);diff --git a/scripts/ci/changed-areas.test.mjs b/scripts/ci/changed-areas.test.mjsindex 2a4fb1a8c..8070cfd1c 100644--- a/scripts/ci/changed-areas.test.mjs+++ b/scripts/ci/changed-areas.test.mjs@@ -34,6 +34,12 @@ describe('classify', () => {assert.deepEqual(classify(['wiki/assets/TripPlanner.png']), { code: true, image: true, deploy: false });});+ it('runs the tests for markdown that a test reads as input', () => {+ // wiki.test.ts parses server/tests/fixtures/wiki/, so those pages are not docs.+ assert.deepEqual(classify(['server/tests/fixtures/wiki/Sample.md']), { code: true, image: true, deploy: false });+ assert.equal(classify(['client/tests/fixtures/notes.md']).code, true);+ });+it('runs the tests and the image for a server change', () => {assert.deepEqual(classify(['server/src/nest/weather/weather.service.ts']), { code: true, image: true, deploy: false });});