Files
n8n-mcp/scripts/test-msw-setup.sh
czlonkowski 1d464e29e5 test: add Phase 4 database integration tests (partial)
- Add comprehensive test utilities for database testing
- Implement connection management tests for in-memory and file databases
- Add transaction tests including nested transactions and savepoints
- Test database lifecycle, error handling, and performance
- Include tests for WAL mode, connection pooling, and constraints

Part of Phase 4: Integration Testing
2025-07-29 09:36:14 +02:00

22 lines
598 B
Bash
Executable File

#!/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