Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"test:links": "node test-links.js"
"test:links": "node tests/test-links.js"
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.2",
Expand Down
3 changes: 2 additions & 1 deletion frontend/LINK_TESTING.md → frontend/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This directory contains a comprehensive test suite for validating all markdown l
## Running the Tests

```bash
# From project root
npm run test:links
```

Expand Down Expand Up @@ -92,4 +93,4 @@ Key paths are configured at the top of `test-links.js`:
## Exit Codes

- **0**: All links valid
- **1**: One or more invalid links found
- **1**: One or more invalid links found
8 changes: 4 additions & 4 deletions frontend/test-links.js → frontend/tests/test-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

// Configuration
const POSTS_DIR = join(__dirname, 'src', 'posts');
const DATA_IMAGES_DIR = join(__dirname, '..', 'data', 'images');
const STATIC_DIR = join(__dirname, 'static');
const POSTS_DIR = join(__dirname, '..', 'src', 'posts');
const DATA_IMAGES_DIR = join(__dirname, '..', '..', 'data', 'images');
const STATIC_DIR = join(__dirname, '..', 'static');

// Colors for console output
const colors = {
Expand Down Expand Up @@ -295,4 +295,4 @@ function runTests() {
}

// Run the tests
runTests();
runTests();
Loading