Skip to content

Commit 0fd6678

Browse files
test: add JSON/YAML fixtures to every preset dir
Each preset's test-files/ subdir previously only had JS/TS files, so the existing CI step didn't exercise the json + yaml configs included by every environment preset. That let the nextjs/preact missing files-scope bug slip through CI. Also align the AGENTS.md Node matrix note with the actual CI matrix (20, 22, 24). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent acf94db commit 0fd6678

15 files changed

Lines changed: 106 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Note: `HUSKY=0` environment variable disables hooks in CI.
132132

133133
### CI Pipeline (`.github/workflows/ci.yml`)
134134
- Runs on pull requests
135-
- Tests against Node.js 18, 20, 22
135+
- Tests against Node.js 20, 22, 24 (matches `engines` field)
136136
- Lints source code with `npx eslint src`
137137
- Validates config against `test-files/` (expects violations to prove rules work)
138138

test-files/angular/test.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "test",
3+
"version": "1.0.0",
4+
"description": "Test JSON file",
5+
"scripts": {
6+
"test": "echo test"
7+
}
8+
}

test-files/angular/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: test-config
2+
version: 1.0.0
3+
# Fixed indentation
4+
description: Test YAML file
5+
scripts:
6+
test: echo test
7+
build: echo build

test-files/nestjs/test.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "test",
3+
"version": "1.0.0",
4+
"description": "Test JSON file",
5+
"scripts": {
6+
"test": "echo test"
7+
}
8+
}

test-files/nestjs/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: test-config
2+
version: 1.0.0
3+
# Fixed indentation
4+
description: Test YAML file
5+
scripts:
6+
test: echo test
7+
build: echo build

test-files/nextjs/test.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "test",
3+
"version": "1.0.0",
4+
"description": "Test JSON file",
5+
"scripts": {
6+
"test": "echo test"
7+
}
8+
}

test-files/nextjs/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: test-config
2+
version: 1.0.0
3+
# Fixed indentation
4+
description: Test YAML file
5+
scripts:
6+
test: echo test
7+
build: echo build

test-files/nodejs/test.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "test",
3+
"version": "1.0.0",
4+
"description": "Test JSON file",
5+
"scripts": {
6+
"test": "echo test"
7+
}
8+
}

test-files/nodejs/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: test-config
2+
version: 1.0.0
3+
# Fixed indentation
4+
description: Test YAML file
5+
scripts:
6+
test: echo test
7+
build: echo build

test-files/preact/test.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "test",
3+
"version": "1.0.0",
4+
"description": "Test JSON file",
5+
"scripts": {
6+
"test": "echo test"
7+
}
8+
}

0 commit comments

Comments
 (0)