Skip to content

Commit c57db2a

Browse files
authored
Move frontend tests to a tests directory (#233)
1 parent 7471354 commit c57db2a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"preview": "vite preview",
99
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
1010
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
11-
"test:links": "node test-links.js"
11+
"test:links": "node tests/test-links.js"
1212
},
1313
"devDependencies": {
1414
"@sveltejs/adapter-auto": "^3.2.2",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This directory contains a comprehensive test suite for validating all markdown l
55
## Running the Tests
66

77
```bash
8+
# From project root
89
npm run test:links
910
```
1011

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

9495
- **0**: All links valid
95-
- **1**: One or more invalid links found
96+
- **1**: One or more invalid links found
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const __filename = fileURLToPath(import.meta.url);
88
const __dirname = dirname(__filename);
99

1010
// Configuration
11-
const POSTS_DIR = join(__dirname, 'src', 'posts');
12-
const DATA_IMAGES_DIR = join(__dirname, '..', 'data', 'images');
13-
const STATIC_DIR = join(__dirname, 'static');
11+
const POSTS_DIR = join(__dirname, '..', 'src', 'posts');
12+
const DATA_IMAGES_DIR = join(__dirname, '..', '..', 'data', 'images');
13+
const STATIC_DIR = join(__dirname, '..', 'static');
1414

1515
// Colors for console output
1616
const colors = {
@@ -295,4 +295,4 @@ function runTests() {
295295
}
296296

297297
// Run the tests
298-
runTests();
298+
runTests();

0 commit comments

Comments
 (0)