chore: clean up development artifacts and update .gitignore
- Remove AI agent coordination files and progress tracking - Remove temporary test results and generated artifacts - Remove diagnostic test scripts from src/scripts/ - Remove development planning documents - Update .gitignore to exclude test artifacts - Clean up 53 temporary files total
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Emergency script to run tests without coverage in CI if hanging persists
|
||||
|
||||
echo "Running tests without coverage to diagnose hanging issue..."
|
||||
FEATURE_TEST_COVERAGE=false vitest run --reporter=default --reporter=junit
|
||||
|
||||
echo "Tests completed. If this works but regular test:ci hangs, the issue is coverage-related."
|
||||
@@ -1,48 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Testing MSW fix to prevent hanging in CI..."
|
||||
echo "========================================"
|
||||
|
||||
# Colors for output
|
||||
GREEN='\033[0;32m'
|
||||
RED='\033[0;31m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
# Test 1: Run unit tests (should not load MSW)
|
||||
echo -e "\n${YELLOW}Test 1: Running unit tests (without MSW)...${NC}"
|
||||
if npm run test:unit -- --run --reporter=verbose tests/unit/services/property-filter.test.ts; then
|
||||
echo -e "${GREEN}✓ Unit tests passed without MSW${NC}"
|
||||
else
|
||||
echo -e "${RED}✗ Unit tests failed${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Test 2: Run integration test that uses MSW
|
||||
echo -e "\n${YELLOW}Test 2: Running integration test with MSW...${NC}"
|
||||
if npm run test:integration -- --run --reporter=verbose tests/integration/msw-setup.test.ts; then
|
||||
echo -e "${GREEN}✓ Integration tests passed with MSW${NC}"
|
||||
else
|
||||
echo -e "${RED}✗ Integration tests failed${NC}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Test 3: Check that process exits cleanly
|
||||
echo -e "\n${YELLOW}Test 3: Testing clean process exit...${NC}"
|
||||
timeout 30s npm run test:unit -- --run tests/unit/services/property-filter.test.ts
|
||||
EXIT_CODE=$?
|
||||
|
||||
if [ $EXIT_CODE -eq 0 ]; then
|
||||
echo -e "${GREEN}✓ Process exited cleanly${NC}"
|
||||
else
|
||||
if [ $EXIT_CODE -eq 124 ]; then
|
||||
echo -e "${RED}✗ Process timed out (hanging detected)${NC}"
|
||||
exit 1
|
||||
else
|
||||
echo -e "${RED}✗ Process exited with code $EXIT_CODE${NC}"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo -e "\n${GREEN}All tests passed! MSW fix is working correctly.${NC}"
|
||||
echo "The fix prevents MSW from being loaded globally, which was causing hanging in CI."
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Test MSW setup for n8n-mcp
|
||||
echo "Testing MSW (Mock Service Worker) setup..."
|
||||
echo "========================================"
|
||||
|
||||
# Build the project first
|
||||
echo "Building project..."
|
||||
npm run build
|
||||
|
||||
# Run the MSW setup test
|
||||
echo -e "\nRunning MSW setup verification test..."
|
||||
npm test tests/integration/msw-setup.test.ts
|
||||
|
||||
# Check if test passed
|
||||
if [ $? -eq 0 ]; then
|
||||
echo -e "\n✅ MSW setup is working correctly!"
|
||||
echo "You can now use MSW for mocking n8n API in your integration tests."
|
||||
else
|
||||
echo -e "\n❌ MSW setup test failed. Please check the errors above."
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user