@echo off
setlocal EnableExtensions
chcp 65001 >nul
cd /d "%~dp0"
title OnlyCoin - Sistem Testi

call "%CD%\scripts\resolve-node.cmd"
if errorlevel 1 goto :failed

"%NODE_EXE%" --no-warnings "%CD%\scripts\run-tests.js"
if errorlevel 1 goto :failed
pause
exit /b 0

:failed
echo Testlerden biri basarisiz oldu.
pause
exit /b 1
