Skip to content

Commit f99a16f

Browse files
committed
Add comprehensive test script for issue validation
1 parent 01edb91 commit f99a16f

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

scripts/test-before-close.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
# Comprehensive test script before closing issues
3+
4+
echo "🚀 Running comprehensive tests before closing issue..."
5+
6+
echo "📝 1. Running TypeScript type checking..."
7+
npm run build.types || {
8+
echo "❌ TypeScript errors found!"
9+
exit 1
10+
}
11+
12+
echo "🔍 2. Running Biome checks..."
13+
biome check . || {
14+
echo "❌ Biome linting/formatting issues found!"
15+
echo "💡 Run 'biome check --write .' to fix auto-fixable issues"
16+
exit 1
17+
}
18+
19+
echo "🧪 3. Running tests..."
20+
npm run test || {
21+
echo "❌ Tests failed!"
22+
exit 1
23+
}
24+
25+
echo "🏗️ 4. Building the project..."
26+
npm run build || {
27+
echo "❌ Build failed!"
28+
exit 1
29+
}
30+
31+
echo "✅ All checks passed! Ready to close the issue."
32+
exit 0

0 commit comments

Comments
 (0)