@quenty/nevermore-test-runner 1.0.1-canary.656.79f7d10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## 1.0.1-canary.656.79f7d10.0 (2026-02-13)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add CI/CD batch unit testing ([016a366](https://github.com/Quenty/NevermoreEngine/commit/016a3663509c8fffa518b07cfc49ebecba2a1fa6))
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2014-2026 James Onnen (Quenty)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ ## NevermoreTestRunner
2
+
3
+ <div align="center">
4
+ <a href="http://quenty.github.io/NevermoreEngine/">
5
+ <img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/docs.yml/badge.svg" alt="Documentation status" />
6
+ </a>
7
+ <a href="https://discord.gg/mhtGUS8">
8
+ <img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
9
+ </a>
10
+ <a href="https://github.com/Quenty/NevermoreEngine/actions">
11
+ <img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/build.yml/badge.svg" alt="Build and release status" />
12
+ </a>
13
+ </div>
14
+
15
+ Unified test runner service for Nevermore packages
16
+
17
+ <div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/NevermoreTestRunnerUtils">View docs →</a></div>
18
+
19
+ ## Installation
20
+
21
+ ```
22
+ npm install @quenty/nevermoretestrunner --save
23
+ ```
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "nevermore-test-runner",
3
+ "globIgnorePaths": [
4
+ "**/.package-lock.json",
5
+ "**/.pnpm",
6
+ "**/.pnpm-workspace-state-v1.json",
7
+ "**/.modules.yaml",
8
+ "**/.ignored",
9
+ "**/.ignored_*"
10
+ ],
11
+ "tree": {
12
+ "$path": "src"
13
+ }
14
+ }
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@quenty/nevermore-test-runner",
3
+ "version": "1.0.1-canary.656.79f7d10.0",
4
+ "description": "Unified test runner service for Nevermore packages",
5
+ "keywords": [
6
+ "Roblox",
7
+ "Nevermore",
8
+ "Lua",
9
+ "Testing"
10
+ ],
11
+ "bugs": {
12
+ "url": "https://github.com/Quenty/NevermoreEngine/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/Quenty/NevermoreEngine.git",
17
+ "directory": "src/nevermore-test-runner/"
18
+ },
19
+ "funding": {
20
+ "type": "patreon",
21
+ "url": "https://www.patreon.com/quenty"
22
+ },
23
+ "license": "MIT",
24
+ "scripts": {
25
+ "preinstall": "npx only-allow pnpm"
26
+ },
27
+ "contributors": [
28
+ "Quenty"
29
+ ],
30
+ "dependencies": {
31
+ "@quenty/loader": "10.9.3",
32
+ "@quentystudios/jest-lua": "https://github.com/quentystudios/jest-lua.git"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "gitHead": "79f7d102f6f6406100008c84163d68b0a4e1b7c1"
38
+ }
@@ -0,0 +1,75 @@
1
+ --!strict
2
+ --[=[
3
+ @class NevermoreTestRunnerUtils
4
+
5
+ Unified test runner utilities for Nevermore packages.
6
+ Handles both smoke tests (game boot) and Jest unit tests.
7
+
8
+ - If a jest.config is found under the given root, runs Jest tests
9
+ - If no jest.config is found, boot success is the test (smoke test)
10
+ - Detects Open Cloud execution via OpenCloudService to control behavior
11
+ ]=]
12
+
13
+ local require = require(script.Parent.loader).load(script)
14
+
15
+ local Jest = (require :: any)("Jest")
16
+
17
+ local NevermoreTestRunnerUtils = {}
18
+
19
+ --[=[
20
+ Returns true if running inside an Open Cloud Luau Execution context.
21
+ ]=]
22
+ function NevermoreTestRunnerUtils.isOpenCloud(): boolean
23
+ local success, _ = pcall(function()
24
+ return game:GetService("OpenCloudService")
25
+ end)
26
+
27
+ return success
28
+ end
29
+
30
+ --[=[
31
+ Runs Jest tests if a jest.config is found under root. Otherwise treats
32
+ boot success as the test (smoke test).
33
+
34
+ @param root -- The instance to scan for jest.config (e.g. the package folder in ServerScriptService)
35
+ ]=]
36
+ function NevermoreTestRunnerUtils.runTestsIfNeededAsync(root: Instance)
37
+ assert(typeof(root) == "Instance", "Bad root")
38
+
39
+ local isOpenCloud = NevermoreTestRunnerUtils.isOpenCloud()
40
+
41
+ if isOpenCloud then
42
+ print("[NevermoreTestRunner] Running in Open Cloud execution context")
43
+ end
44
+
45
+ local config = root:FindFirstChild("jest.config", true)
46
+ if not config or not config.Parent then
47
+ print("[NevermoreTestRunner] No jest.config found — smoke test passed (boot success)")
48
+ return
49
+ end
50
+
51
+ local projectRoot = config.Parent
52
+ print("[NevermoreTestRunner] Running Jest tests from:", projectRoot:GetFullName())
53
+ local status, result = (Jest :: any)
54
+ .runCLI(projectRoot, {
55
+ verbose = true,
56
+ ci = true,
57
+ }, { projectRoot })
58
+ :awaitStatus()
59
+
60
+ if status == "Rejected" then
61
+ local message = "Jest run failed"
62
+ if typeof(result) == "table" and result.message then
63
+ message = result.message
64
+ elseif typeof(result) == "string" then
65
+ message = result
66
+ end
67
+ error("[NevermoreTestRunner] " .. message)
68
+ end
69
+
70
+ if typeof(result) == "table" and result.numFailedTests and result.numFailedTests > 0 then
71
+ error(string.format("[NevermoreTestRunner] %d test(s) failed", result.numFailedTests))
72
+ end
73
+ end
74
+
75
+ return NevermoreTestRunnerUtils
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "node_modules",
3
+ "globIgnorePaths": [ "**/.package-lock.json" ],
4
+ "tree": {
5
+ "$path": { "optional": "../node_modules" }
6
+ }
7
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "NevermoreTestRunnerTest",
3
+ "globIgnorePaths": [
4
+ "**/.package-lock.json",
5
+ "**/.pnpm",
6
+ "**/.pnpm-workspace-state-v1.json",
7
+ "**/.modules.yaml",
8
+ "**/.ignored",
9
+ "**/.ignored_*"
10
+ ],
11
+ "tree": {
12
+ "$className": "DataModel",
13
+ "ServerScriptService": {
14
+ "$properties": {
15
+ "LoadStringEnabled": true
16
+ },
17
+ "nevermore-test-runner": {
18
+ "$path": ".."
19
+ }
20
+ }
21
+ }
22
+ }