#!/bin/bash # Test runner for docs CLI tests # Run with: bash scripts/docs-cli/__tests__/run-tests.sh echo "๐Ÿงช Running docs CLI tests..." echo "" FAILED=0 # Unit tests echo "โ”โ”โ” Unit Tests โ”โ”โ”" echo "" node scripts/docs-cli/__tests__/editor-resolver.test.js [ $? -ne 0 ] && FAILED=1 node scripts/docs-cli/__tests__/process-manager.test.js [ $? -ne 0 ] && FAILED=1 # Integration tests (catches import path errors) echo "" echo "โ”โ”โ” Integration Tests โ”โ”โ”" node scripts/docs-cli/__tests__/cli-integration.test.js [ $? -ne 0 ] && FAILED=1 # Summary echo "" if [ $FAILED -eq 0 ]; then echo "โœ… All tests passed!" exit 0 else echo "โŒ Some tests failed" exit 1 fi