-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite networking to use remotes instead of relying on value instances
- Loading branch information
1 parent
9249479
commit 74f2686
Showing
23 changed files
with
557 additions
and
547 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
"rules": [ | ||
"remove_comments", | ||
"remove_spaces", | ||
{ | ||
"rule": "convert_require", | ||
"current": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
"rules": [ | ||
"remove_comments", | ||
"remove_spaces", | ||
{ | ||
"rule": "convert_require", | ||
"current": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[tools] | ||
rojo = { github = "rojo-rbx/rojo", version = "=7.4.1"} | ||
rojo = { github = "rojo-rbx/rojo", version = "=7.4.4"} | ||
selene = { github = "Kampfkarren/selene", version = "=0.27.1"} | ||
stylua = { github = "JohnnyMorganz/StyLua", version = "=0.20.0"} | ||
darklua = { github = "seaofvoices/darklua", version = "=0.13.0"} | ||
luau-lsp = { github = "JohnnyMorganz/luau-lsp", version = "=1.29.0"} | ||
darklua = { github = "seaofvoices/darklua", version = "=0.14.0"} | ||
luau-lsp = { github = "JohnnyMorganz/luau-lsp", version = "=1.35.0"} | ||
run-in-roblox = { github = "rojo-rbx/run-in-roblox", version = "=0.3.0" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
local jestGlobals = require('@pkg/@jsdotlua/jest-globals') | ||
|
||
local jest = jestGlobals.jest | ||
|
||
local function mockInstance<T>(tableValue, fallbackInstance): T | ||
return setmetatable(tableValue, { | ||
__index = function(_, index) | ||
local result = (fallbackInstance :: any)[index] | ||
|
||
if type(result) == 'function' then | ||
local mockInstance = jest.fn(function(_self, ...) | ||
return result(fallbackInstance, ...) | ||
end) | ||
rawset(tableValue, index, mockInstance) | ||
|
||
return mockInstance | ||
else | ||
return result | ||
end | ||
end, | ||
__newindex = function(_, index, value) | ||
fallbackInstance[index] = value | ||
end, | ||
}) :: any | ||
end | ||
|
||
return mockInstance |
Oops, something went wrong.