repo stringclasses 350
values | file_path stringlengths 29 200 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 2 1.01M | tokens int64 2 598k |
|---|---|---|---|---|---|
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/RbxCharacterSounds/init.client.luau | luau | .luau | --!nonstrict
-- Roblox character sound script
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local SoundService = game:GetService("SoundService")
local Utils = require(ReplicatedStorage.Modules.Utils)
local Ato... | 3,392 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/RemoteHandler/DisplayHitmarker.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Network = require(ReplicatedStorage.Modules.Network)
local Hitmarker = require(ReplicatedStorage.Classes.Hitmarker)
return function()
Network:SetConnection("DisplayHitmarker", "REMOTE_EVENT", function(position: Vector3, amount: number)
Hitmarker... | 75 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/RemoteHandler/ExecuteReplicatedModule.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Network = require(ReplicatedStorage.Modules.Network)
return function()
local function Execute(path: string, ...)
local module: ModuleScript
if path and #path > 0 then
local steps = path:split(".")
for index, step in steps do
if inde... | 188 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/RemoteHandler/Print.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Network = require(ReplicatedStorage.Modules.Network)
return function()
Network:SetConnection("Print", "UREMOTE_EVENT", function(messageType: Enum.MessageType, ...)
if workspace:GetAttribute("DebugAllowed") ~= true then
return
... | 108 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/RemoteHandler/ShowJokeSettingImage.luau | luau | .luau | local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local Utils = require(ReplicatedStorage.Modules.Utils)
local Network = require(ReplicatedStorage.Modules.Network)
local... | 507 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/RemoteHandler/init.luau | luau | .luau | return {
Init = function(_self)
for _, func in script:GetChildren() do
if not func:IsA("ModuleScript") then
continue
end
require(func)()
end
end
} | 48 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/AchievementsMenu.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local Achievements = require(ReplicatedStorage.Assets.Achievements)
local Types = require(ReplicatedStorage.Classes.Types)
local Sounds = require(ReplicatedStor... | 2,378 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Changelog.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local SideBar = require(script.Parent.SideBar)
local Utils = require(ReplicatedStorage.Modules.Utils)
local LocalPlayer = Players.LocalPlayer
local Changelog ... | 1,330 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/CharacterStatsManager.luau | luau | .luau | local CharacterStatsManager = {
UI = nil,
Connection = nil,
}
local LocalPlayer = game:GetService("Players").LocalPlayer
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Utils = require(ReplicatedStorage.Modules.Utils)
function CharacterStat... | 581 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/ChatHistoryToggle.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local StarterGui = game:GetService("StarterGui")
local TextChatService = game:GetService("TextChatService")
local Utils = require(ReplicatedStorage.Modules.Utils)
repeat
local success = pcall(function()
Starte... | 186 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Credits.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local SideBar = require(script.Parent.SideBar)
local Utils = require(ReplicatedStorage.Modules.Utils)
local LocalPlayer = Players.LocalPlayer
local CreditsMen... | 927 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/EffectViewer.luau | luau | .luau | local EffectViewer = {}
local LocalPlayer = game:GetService("Players").LocalPlayer
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Utils = require(ReplicatedStorage.Modules.Utils)
local EffectDisplay: Frame
function EffectViewer:Init()
Effect... | 420 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/EmotePanel.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
local Mou... | 1,394 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/IntroHandler.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Utils = require(ReplicatedStorage.Modules.Utils)
local KillerIntro = require(ReplicatedStorage.Classes.KillerIntro)
local IntroFolder = ReplicatedStorage.Assets.KillerIntros
local function GetIntroModule(na... | 761 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Inventory/EmoteEquipWindow.luau | luau | .luau | local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local Utils = require(ReplicatedStorage.Modules.Utils)
local Network = require(ReplicatedStorage.Modules.Network)
local... | 971 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Inventory/init.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local TextService = game:GetService("TextService")
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
... | 6,961 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/ModPanel/Bool.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Network = require(ReplicatedStorage.Modules.Network)
local Sounds = require(ReplicatedStorage.Modules.Sounds)
local BoolCommand = {}
function BoolCommand.New(CommandModule: ModuleScript, UI): ImageLabel
local Config = require(CommandModule)
... | 280 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/ModPanel/Enum.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Network = require(ReplicatedStorage.Modules.Network)
local Sounds = require(ReplicatedStorage.Modules.Sounds)
local Utils = require(ReplicatedStorage.Modules.Utils)
local GlobalPrefab = Utils.Instance.FindFirstChild(script, "Enum", 0)
local ValuePre... | 362 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/ModPanel/init.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local SideBar = require(script.Parent.SideBar)
local Network = require(ReplicatedStorage.Modules.Network)
local Sounds = require(ReplicatedStorage.Modules.Sound... | 936 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/MoneyXPRewards.luau | luau | .luau | local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local Utils = require(ReplicatedStorage.Modules.Utils)
local Network = require(ReplicatedStorage.Modules.Network)
loca... | 421 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/PlayerList/PlayerInfoWindow.luau | luau | .luau | local Debris = game:GetService("Debris")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local Utils = require(ReplicatedStorage.Modules.Utils)
local Sounds = require(ReplicatedStorage.Modules.Sounds)
local S... | 2,206 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/PlayerList/init.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local Utils = require(ReplicatedStorage.Modules.Utils)
local Sounds = require(ReplicatedStorage.Modules.Sounds)
local InputManager = require(script.Parent.Paren... | 1,088 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/RewardNotifications.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local Utils = require(ReplicatedStorage.Modules.Utils)
local Network = require(ReplicatedStorage.Modules.Network)
local RewardNotifications = {}
function Rewa... | 571 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/RoundPlayerList.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Utils = require(ReplicatedStorage.Modules.Utils)
local LocalPlayer = Players.LocalPlayer
local RoundState: StringValue = ReplicatedStorage.RoundInfo.CurrentState
local RoundPlayerList = {
UI = nil,
... | 1,064 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/RulesMenu.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local SideBar = require(script.Parent.SideBar)
local Utils = require(ReplicatedStorage.Modules.Utils)
local LocalPlayer = Players.LocalPlayer
local Rules = {
... | 949 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/Bool.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Network = require(ReplicatedStorage.Modules.Network)
local Sounds = require(ReplicatedStorage.Modules.Sounds)
local BoolSetting = {}
function BoolSetting:New(Bool: BoolValue, ExistingCheckbox: Frame?, Callback: (Value: boolean) -> ()?)
if not Bo... | 342 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/Connections/AFK.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Utils = require(ReplicatedStorage.Modules.Utils)
local AFKLabel = Utils.Instance.FindFirstChild(Players.LocalPlayer.PlayerGui, "AFKLabel")
return function(Value: boolean)
AFKLabel.Enabled = Value
end | 69 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/Connections/FieldOfView.luau | luau | .luau | local LocalPlayer = game:GetService("Players").LocalPlayer
return function(NewValue: number)
LocalPlayer:SetAttribute("BaseFOV", NewValue)
end | 34 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/Connections/MusicVolume.luau | luau | .luau | local SoundService = game:GetService("SoundService")
return function(NewValue: number)
SoundService.SoundGroups.Master.Music.Volume = NewValue / 100
end | 35 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/Connections/SFXVolume.luau | luau | .luau | local SoundService = game:GetService("SoundService")
return function(NewValue: number)
SoundService.SoundGroups.Master.SFX.Volume = NewValue / 100
end | 35 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/Connections/ShowPlayerHitboxes.luau | luau | .luau | return function(Value: boolean)
for _, Player: Model in workspace.Players:GetChildren() do
local Hitboxes = Player:FindFirstChild("Hitboxes")
if Hitboxes then
for _, hitbox in Hitboxes:GetChildren() do
hitbox.Transparency = Value and hitbox:GetAttribute("VisibleTransparen... | 84 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/Connections/UIVolume.luau | luau | .luau | local SoundService = game:GetService("SoundService")
return function(NewValue: number)
SoundService.SoundGroups.Master.UI.Volume = NewValue / 100
end | 34 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/Connections/VoicelineVolume.luau | luau | .luau | local SoundService = game:GetService("SoundService")
return function(NewValue: number)
SoundService.SoundGroups.Master.VoiceLines.Volume = NewValue / 100
end | 36 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/Number.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Network = require(ReplicatedStorage.Modules.Network)
local Sounds = require(ReplicatedStorage.Modules.Sounds)
local NumberSetting = {}
function NumberSetting:New(NumberValue: NumberValue, ExistingInput: TextBox?, Callback: (Value: number) -> ()?)
... | 445 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/String.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Network = require(ReplicatedStorage.Modules.Network)
local Sounds = require(ReplicatedStorage.Modules.Sounds)
local StringSetting = {}
function StringSetting:New(StringValue: StringValue, ExistingInput: TextBox?, Callback: (Value: string) -> ()?)
... | 315 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Settings/init.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local SideBar = require(script.Parent.SideBar)
local Utils = require(ReplicatedStorage.Modules.Utils)
local LocalPlayer = game:GetService("Players").LocalPlaye... | 1,051 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Shop/BuyWindow.luau | luau | .luau | local Debris = game:GetService("Debris")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local Utils = require(ReplicatedStorage.Modules.Utils)
local Network = require(ReplicatedStorage.Modules.Network)
local Signal = require(ReplicatedStorage.Utils.S... | 705 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Shop/init.luau | luau | .luau | local GuiService = game:GetService("GuiService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TextService = game:GetService("TextService")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
... | 8,898 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/SideBar.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TextService = game:GetService("TextService")
local TweenService = game:GetService("TweenService")
local Utils = require(ReplicatedStorage.Modules.Utils)
local Sounds = require(ReplicatedStorage.Modules.Sound... | 2,356 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Spectate.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local Sounds = require(ReplicatedStorage.Modules.Sounds)
local SideBar = require(script.Parent.SideBar)
local U... | 1,471 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/StatsMenu.luau | luau | .luau | local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TweenService = game:GetService("TweenService")
local SideBar = require(script.Parent.SideBar)
local Utils = require(ReplicatedStorage.Modules.Utils)
local LocalPlayer = Players.LocalPlayer
local StatsMenu ... | 934 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/Time.luau | luau | .luau | local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Utils = require(ReplicatedStorage.Modules.Utils)
return {
Init = function(_)
local TimeStats = ReplicatedStorage.RoundInfo
local TimeRemaining = TimeStats.TimeRemaining
local State = TimeStats.CurrentState
local... | 367 |
CodeBotsStudio/Dysymmetrical | CodeBotsStudio-Dysymmetrical-efeac6e/src/StarterPlayerScripts/UI/VideoPlayer.luau | luau | .luau | --credits to PirosMacska for this since i was too lazy to write it myself -Dyscarn (Driftwood thing)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Utils = require(ReplicatedStorage.Modules.Utils)
local module = {}
local Player = game:GetService("Players").LocalPlayer
local ScreenGUI
local fra... | 1,041 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/.config.luau | luau | .luau | return {
luau = {
languagemode = "strict",
lint = {
["*"] = true,
-- Luau has no first-class type-narrowing syntax. The idiomatic
-- workaround is to shadow the outer name with a narrower
-- binding inside a runtime-checked branch, as in
-- src/jest-mock/src/init.lua:
--
-- local object:... | 146 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/.lute/analyze.luau | luau | .luau | local fs = require("@std/fs")
local run = require("./utils/run")
print("Running static analysis...")
-- The Roblox API definitions are committed rather than fetched per run; see
-- .lute/update-types.luau for what they are and when to refresh them. Checked
-- up front so a fresh clone doesn't wait through an install ... | 652 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/.lute/utils/patchErrorPolyfill.luau | luau | .luau | local fs = require("@std/fs")
local OPTIMIZE_DIRECTIVE = "--!optimize 1"
-- Prepend `--!optimize 1` to `path` if not already present. The directive is
-- a performance hint, not a correctness requirement — if the file doesn't
-- exist (e.g. LuauPolyfill was installed under a different layout than the
-- caller expect... | 218 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/.lute/utils/run.luau | luau | .luau | local process = require("@lute/process")
return function(cmd)
print(`> {table.concat(cmd, " ")}`)
local ok, result = pcall(function()
return process.run(cmd, { stdio = "inherit", env = { PATH = `{process.cwd()}:{process.env.PATH}` } })
end)
if not ok then
error(result)
end
if result.ok then
print(result... | 110 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/ChalkLua.lua | luau | .lua | return require(script.Parent.Parent.ChalkLua)
| 9 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/JestConfig.lua | luau | .lua | return require(script.Parent.Parent.JestConfig)
| 9 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/JestEnvironmentLuau.lua | luau | .lua | return require(script.Parent.Parent.JestEnvironmentLuau)
| 11 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/JestGlobals.lua | luau | .lua | local REQUIRED_MODULE = require(script.Parent.Parent.JestGlobals)
export type MatcherState = REQUIRED_MODULE.MatcherState
export type ExpectExtended<E, State = MatcherState> = REQUIRED_MODULE.ExpectExtended<E, State >
return REQUIRED_MODULE
| 46 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/JestMock.lua | luau | .lua | local REQUIRED_MODULE = require(script.Parent.Parent.JestMock)
export type MaybeMockedDeep<T> = REQUIRED_MODULE.MaybeMockedDeep<T>
export type MaybeMocked<T> = REQUIRED_MODULE.MaybeMocked<T>
export type UnknownFunction = REQUIRED_MODULE.UnknownFunction
export type Mock<T = UnknownFunction> = REQUIRED_MODULE.Mock<T >
e... | 127 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/JestSnapshotSerializerRaw.lua | luau | .lua | local REQUIRED_MODULE = require(script.Parent.Parent.JestSnapshotSerializerRaw)
export type Wrapper = REQUIRED_MODULE.Wrapper
return REQUIRED_MODULE
| 27 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/PrettyFormat.lua | luau | .lua | local REQUIRED_MODULE = require(script.Parent.Parent.PrettyFormat)
export type Colors = REQUIRED_MODULE.Colors
export type CompareKeys = REQUIRED_MODULE.CompareKeys
export type Config = REQUIRED_MODULE.Config
export type Options = REQUIRED_MODULE.Options
export type OptionsReceived = REQUIRED_MODULE.OptionsReceived... | 139 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/Promise.lua | luau | .lua | return require(script.Parent.Parent.Promise)
| 7 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/React.lua | luau | .lua | local REQUIRED_MODULE = require(script.Parent.Parent.React)
export type Object = REQUIRED_MODULE.Object
export type Binding<T> = REQUIRED_MODULE.Binding<T>
export type BindingUpdater<T> = REQUIRED_MODULE.BindingUpdater<T>
export type LazyComponent<T, P> = REQUIRED_MODULE.LazyComponent<T, P>
export type StatelessFuncti... | 453 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/ReactRoblox.lua | luau | .lua | local REQUIRED_MODULE = require(script.Parent.Parent.ReactRoblox)
export type RootType = REQUIRED_MODULE.RootType
return REQUIRED_MODULE
| 26 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/ReactTestRenderer.lua | luau | .lua | return require(script.Parent.Parent.ReactTestRenderer)
| 9 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/RobloxShared.lua | luau | .lua | local REQUIRED_MODULE = require(script.Parent.Parent.RobloxShared)
export type NodeJS_WriteStream = REQUIRED_MODULE.NodeJS_WriteStream
export type Writeable = REQUIRED_MODULE.Writeable
return REQUIRED_MODULE
| 41 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/Symbol.lua | luau | .lua | local REQUIRED_MODULE = require(script.Parent.Parent.Symbol)
export type Symbol = REQUIRED_MODULE.Symbol
return REQUIRED_MODULE
| 22 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/DevLinks/TestUtils.lua | luau | .lua | return require(script.Parent.Parent.TestUtils)
| 8 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/TestRoot/jest.config.lua | luau | .lua | local Workspace = script.Parent
return {
setupFilesAfterEnv = { Workspace.testSetupFile },
testMatch = { "**/*.(spec|test)?(.lua|.luau)", "**/__tests__/index" },
-- Wally-installed dependencies live under Packages/_Index/<pkg>@<ver>/ and
-- may ship their own __tests__ files (unless the dependency's wally.toml
--... | 120 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/TestRoot/normalizeStackTraces.lua | luau | .lua | -- Dependency packages whose *internal* frames surface in stack-trace snapshots.
-- Wally mounts them versioned under `_Index/roblox_<pkg>@<ver>/<pkg>` while
-- Rotriever mounts them flat under a PascalCase alias, so the same frame renders
-- differently per layout. Canonicalizing to the alias (and dropping the churny
... | 676 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/TestRoot/testSetupFile.lua | luau | .lua | --[[*
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
]]
-- Some of the `jest-runtime` tests are very slow and cause
-- timeouts on travis
-- jest.setTimeout(70000)
... | 130 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/scripts/run-tests.luau | luau | .luau | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
]]
-- Thin entry point uploaded via `rocale-cli ... | 201 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-benchmark/src/CustomReporters.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 292 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-benchmark/src/MetricLogger.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 288 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-benchmark/src/__tests__/utils.lua | luau | .lua | local exports = {}
local function sum(nums: { number })
local sum = 0
for _, num in nums do
sum += num
end
return sum
end
exports.sum = sum
local function average(nums: { number })
if #nums > 0 then
return sum(nums) / #nums
end
return 0
end
exports.average = average
return exports
| 83 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-benchmark/src/benchmark.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 755 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-benchmark/src/heartbeatModule.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 179 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-benchmark/src/init.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 225 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-benchmark/src/reporters/FpsReporter.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 279 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-benchmark/src/reporters/HeartbeatReporter.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 453 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-benchmark/src/reporters/SectionTimeReporter.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 360 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-benchmark/src/testModule.lua | luau | .lua | --!strict
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law... | 194 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-circus/src/init.lua | luau | .lua | -- ROBLOX upstream: no upstream
--[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless requ... | 226 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-console/src/helpers.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 555 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-diff/src/PrettyFormat.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 335 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-each/src/nilPlaceholder.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 188 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-globals/src/init.lua | luau | .lua | -- /**
-- * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
-- *
-- * This source code is licensed under the MIT license found in the
-- * LICENSE file in the root directory of this source tree.
-- *
-- */
local Packages = script.Parent
local ExpectModule = require(Packages.Expect)
export t... | 110 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-mock-genv/src/init.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 1,321 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-mock-rbx/src/DataModelMocker.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 587 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-mock-rbx/src/init.lua | luau | .lua | --[[
* Copyright (c) Roblox Corporation. All rights reserved.
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed... | 242 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-mock/src/init.lua | luau | .lua | --!nonstrict
local CurrentModule = script
local Packages = CurrentModule.Parent
local LuauPolyfill = require(Packages.LuauPolyfill)
local Error = LuauPolyfill.Error
local Set = LuauPolyfill.Set
local Symbol = require(Packages.Symbol)
local JestMockGenv = require(Packages.JestMockGenv)
type GlobalMocker = JestMockGenv... | 3,893 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/mock_me.lua | luau | .lua | -- ROBLOX NOTE: no upstream
local exports = {}
exports.mocked = false
exports.actual = true
return exports
| 28 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/rbs_fixture.lua | luau | .lua | return { name = "rbs_fixture", location = "__tests__" }
| 16 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/rbs_native_errors.global.lua | luau | .lua | -- Captures the actual error messages from the native require for @rbx and @std
-- passthrough paths. These vary across roblox-cli versions, so we capture them
-- dynamically rather than hardcoding expected strings.
--
-- This module must be loaded with the real Roblox native require, NOT Jest's
-- sandboxed require.
... | 201 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/requireNil.roblox.lua | luau | .lua | return nil
| 3 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/requireOne.roblox.lua | luau | .lua | return 1
| 4 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/requireTwo.roblox.lua | luau | .lua | return nil, nil
| 5 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/returnRequire.roblox.lua | luau | .lua | return function()
return require
end
| 8 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/runtimeTestFile.lua | luau | .lua | -- ROBLOX NOTE: no upstream
return {}
| 12 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/test_fenv/init.lua | luau | .lua | -- ROBLOX NOTE: no upstream
local Packages = script.Parent.Parent.Parent
local JestGlobals = require(Packages.Dev.JestGlobals)
local jest = JestGlobals.jest
return {
game = game,
workspace = workspace,
jest = jest,
}
| 55 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/test_rbs/init.lua | luau | .lua | return { name = "test_rbs" }
| 10 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/test_rbs/nested/deep.lua | luau | .lua | return { name = "deep", location = "test_rbs/nested" }
| 17 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/test_rbs/nested/init.lua | luau | .lua | return { name = "nested" }
| 8 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/test_rbs/self_test/child.lua | luau | .lua | return { name = "self_child" }
| 9 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/test_rbs/self_test/init.lua | luau | .lua | return (require :: any)("@self/child")
| 11 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/__tests__/test_rbs/sibling.lua | luau | .lua | return { name = "sibling", location = "test_rbs" }
| 16 |
Roblox/jest-roblox | Roblox-jest-roblox-35095f7/src/jest-runtime/src/_types.lua | luau | .lua | --[[*
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
]]
local CurrentModule = script.Parent
local Packages = CurrentModule.Parent
local moduleMockerModule = requir... | 385 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.