-
Notifications
You must be signed in to change notification settings - Fork 0
docs: align agent instructions and coverage config #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| module.exports = { | ||
| testEnvironment: 'node', | ||
| testMatch: ['**/test/**/*.test.js', '**/test/**/*.spec.js'], | ||
| collectCoverageFrom: ['scripts/**/*.js', '!scripts/**/*.test.js', '!scripts/**/*.spec.js'], | ||
| collectCoverageFrom: ['script/**/*.js', '!script/**/*.test.js', '!script/**/*.spec.js'], | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chainCoverage path correctly updated to match directory structure. The change from Verify that the 🏁 Script executed: #!/bin/bash
# Description: Verify script/ directory exists and contains .js files that should be tracked for coverage
# Check if script/ directory exists
if [ -d "script" ]; then
echo "✓ script/ directory exists"
# List all .js files in script/ (excluding test files)
echo ""
echo "JavaScript files in script/:"
fd -e js -E '*.test.js' -E '*.spec.js' . script/
else
echo "✗ script/ directory not found"
exit 1
fi
# Check if scripts/ directory exists (old path)
if [ -d "scripts" ]; then
echo ""
echo "⚠ Warning: scripts/ directory still exists (should be removed or renamed)"
fiLength of output: 56 🏁 Script executed: #!/bin/bash
# Comprehensive verification of directory structure and documentation
echo "=== Checking script/ directory contents ==="
if [ -d "script" ]; then
echo "✓ script/ exists"
find script -type f -name "*.js" | head -20
else
echo "✗ script/ not found"
fi
echo ""
echo "=== Checking scripts/ directory (old path) ==="
if [ -d "scripts" ]; then
echo "✓ scripts/ exists"
find scripts -type f -name "*.js" | head -20
else
echo "✗ scripts/ not found"
fi
echo ""
echo "=== Checking README.md line 25 context ==="
if [ -f "README.md" ]; then
sed -n '20,30p' README.md
else
echo "README.md not found"
fi
echo ""
echo "=== Current jest.config.js collectCoverageFrom ==="
grep -A 1 "collectCoverageFrom" jest.config.jsLength of output: 1571 jest.config.js coverage pattern is broken — script/ contains shell scripts, not JavaScript files. The directory rename from Either remove the 🤖 Prompt for AI Agents |
||
| coverageDirectory: 'coverage', | ||
| coverageReporters: ['text', 'lcov', 'html'], | ||
| coverageThreshold: { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specify language identifier for fenced code block.
The code block lacks a language identifier. Per Markdown best practices and markdownlint (MD040), add a language specifier (e.g.,
text,shell, ordiffif the example follows Git diff format).🧰 Tools
🪛 markdownlint-cli2 (0.18.1)
78-78: Fenced code blocks should have a language specified
(MD040, fenced-code-language)
🤖 Prompt for AI Agents