chore: import Local-Cursor v1.1.8 source snapshot
Includes the current working directory changes. Historical commits and release binaries are excluded to limit Gitea storage. Source base: d7515973fbfd6dd2001fa156c483455b8081c7cb
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Run vitest with any additional arguments passed after --
|
||||
npx vitest run --config vitest.config.ts "$@"
|
||||
|
||||
# Capture the exit code
|
||||
exit_code=$?
|
||||
|
||||
# If tests failed, echo the colored error message
|
||||
if [ $exit_code -ne 0 ]; then
|
||||
echo -e "\033[1;31m❌ Test failed -- you can set CURSOR_EXT_TEST_LOG_LEVEL=info to see more logs\033[0m"
|
||||
fi
|
||||
|
||||
# Exit with the same code as vitest
|
||||
exit $exit_code
|
||||
Reference in New Issue
Block a user