do unit test when building frontend files

This commit is contained in:
MaysWind
2025-06-08 02:47:10 +08:00
parent ce4bca8272
commit 8616183660
2 changed files with 22 additions and 0 deletions
+11
View File
@@ -191,6 +191,17 @@ goto :pre_parse_args
)
)
if "%NO_TEST%"=="0" (
echo Executing frontend unit testing...
call npm run test
if !errorlevel! neq 0 (
call :echo_red "Error: Failed to pass unit testing"
goto :end
)
)
endlocal
echo Building frontend files(%RELEASE_TYPE%)...