NevermoreTestRunnerUtils
Unified test runner utilities for Nevermore packages. Handles both smoke tests (game boot) and Jest unit tests.
- If a jest.config is found under the given root, runs Jest tests
- If no jest.config is found, boot success is the test (smoke test)
- Detects Open Cloud execution via OpenCloudService to control behavior
Functions
isOpenCloud
NevermoreTestRunnerUtils.isOpenCloud() → booleanReturns true if running inside an Open Cloud Luau Execution context.
runTestsIfNeededAsync
NevermoreTestRunnerUtils.runTestsIfNeededAsync(root: Instance--
The instance to scan for jest.config (e.g. the package folder in ServerScriptService)
) → ()Runs Jest tests if a jest.config is found under root. Otherwise treats boot success as the test (smoke test).
In Open Cloud, errors propagate naturally and the session terminates. Outside Open Cloud (e.g. run-in-roblox), we call ProcessService:ExitAsync() so Studio exits with the correct code.