@quenty/maid 3.6.0 → 3.6.1-canary.664.c5fd0e8.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
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.6.1-canary.664.c5fd0e8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/maid@3.6.0...@quenty/maid@3.6.1-canary.664.c5fd0e8.0) (2026-02-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/maid
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/maid@3.5.3...@quenty/maid@3.6.0) (2026-02-17)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/maid",
|
|
3
|
-
"version": "3.6.0",
|
|
3
|
+
"version": "3.6.1-canary.664.c5fd0e8.0",
|
|
4
4
|
"description": "Easily cleanup event listeners and objects in Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -31,10 +31,11 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@quenty/loader": "10.10.0",
|
|
34
|
-
"@quenty/nevermore-test-runner": "1.1.0"
|
|
34
|
+
"@quenty/nevermore-test-runner": "1.1.1-canary.664.c5fd0e8.0",
|
|
35
|
+
"@quentystudios/jest-lua": "https://github.com/quentystudios/jest-lua.git"
|
|
35
36
|
},
|
|
36
37
|
"publishConfig": {
|
|
37
38
|
"access": "public"
|
|
38
39
|
},
|
|
39
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "c5fd0e8d7c03e785594220672f81d7c88114fb5b"
|
|
40
41
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
--!nonstrict
|
|
2
|
+
--[[
|
|
3
|
+
@class MaidTaskUtils.spec.lua
|
|
4
|
+
]]
|
|
5
|
+
|
|
6
|
+
local require = require(script.Parent.loader).load(script)
|
|
7
|
+
|
|
8
|
+
local Jest = require("Jest")
|
|
9
|
+
local MaidTaskUtils = require("MaidTaskUtils")
|
|
10
|
+
|
|
11
|
+
local describe = Jest.Globals.describe
|
|
12
|
+
local expect = Jest.Globals.expect
|
|
13
|
+
local it = Jest.Globals.it
|
|
14
|
+
|
|
15
|
+
describe("MaidTaskUtils.isValidTask(job)", function()
|
|
16
|
+
it("should return true for a function", function()
|
|
17
|
+
expect(MaidTaskUtils.isValidTask(function() end)).toEqual(true)
|
|
18
|
+
end)
|
|
19
|
+
|
|
20
|
+
it("should return false for a number", function()
|
|
21
|
+
expect(MaidTaskUtils.isValidTask(5)).toEqual(false)
|
|
22
|
+
end)
|
|
23
|
+
|
|
24
|
+
it("should return false for a string", function()
|
|
25
|
+
expect(MaidTaskUtils.isValidTask("hello")).toEqual(false)
|
|
26
|
+
end)
|
|
27
|
+
|
|
28
|
+
it("should return true for a table with Destroy method", function()
|
|
29
|
+
expect(MaidTaskUtils.isValidTask({ Destroy = function() end })).toEqual(true)
|
|
30
|
+
end)
|
|
31
|
+
|
|
32
|
+
it("should return false for nil", function()
|
|
33
|
+
expect(MaidTaskUtils.isValidTask(nil)).toEqual(false)
|
|
34
|
+
end)
|
|
35
|
+
end)
|
|
@@ -4,9 +4,14 @@ local ServerScriptService = game:GetService("ServerScriptService")
|
|
|
4
4
|
local loader = ServerScriptService:FindFirstChild("LoaderUtils", true).Parent
|
|
5
5
|
local require = require(loader).bootstrapGame(ServerScriptService.maid)
|
|
6
6
|
|
|
7
|
-
local Maid = require("Maid")
|
|
8
7
|
local NevermoreTestRunnerUtils = require("NevermoreTestRunnerUtils")
|
|
9
8
|
|
|
9
|
+
if NevermoreTestRunnerUtils.runTestsIfNeededAsync(ServerScriptService.maid) then
|
|
10
|
+
return
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
local Maid = require("Maid")
|
|
14
|
+
|
|
10
15
|
local maid = Maid.new()
|
|
11
16
|
|
|
12
17
|
maid:Add(task.defer(function()
|
|
@@ -17,5 +22,3 @@ maid:Add(task.defer(function()
|
|
|
17
22
|
error("UPDATE (this should never print)")
|
|
18
23
|
end
|
|
19
24
|
end))
|
|
20
|
-
|
|
21
|
-
NevermoreTestRunnerUtils.runTestsIfNeededAsync(ServerScriptService.maid)
|