Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pesde #1

Draft
wants to merge 21 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Pesde files
.pesde/scripts
roblox_packages
lune_packages
luau_packages
pesde.lock

# Rojo
sourcemap*.json

# Rotriever files
rotriever.lock
Packages/*
Expand Down Expand Up @@ -33,7 +43,6 @@ roblox.toml
# Editor files
.vscode/launch.json
.idea
.vscode

jest_runner_tmp
lcov.info
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"luau-lsp.sourcemap.rojoProjectFile": "test.project.json"
}
8 changes: 0 additions & 8 deletions Packages/.robloxrc

This file was deleted.

10 changes: 6 additions & 4 deletions foreman.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[tools]
rotrieve = { source = "roblox/rotriever", version = "=0.5.13-alpha.5" }
selene = { source = "Roblox/Kampfkarren-selene", version = "=0.25.0" }
stylua = { source = "Roblox/JohnnyMorganz-StyLua", version = "=0.18.1" }
rbx-aged-cli = { source = "roblox/rbx-aged-tool", version = "=5.8.1" }
luau-lsp = { source = "JohnnyMorganz/luau-lsp", version = "1.34.0" }
lune = { source = "lune-org/lune", version = "0.8.9" }
rojo = { source = "rojo-rbx/rojo", version = "7.4.4" }
selene = { source = "Kampfkarren/selene", version = "=0.25.0" }
stylua = { source = "JohnnyMorganz/StyLua", version = "=0.18.1" }
wally-package-types = { source = "JohnnyMorganz/wally-package-types", version = "1.3.2" }
26 changes: 26 additions & 0 deletions pesde.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name = "ghostnaps/jest_workspace"
version = "3.8.0"
description = "A Luau testing framework based on Jest. See JestGlobals for the entry point."
authors = [
"Raymond Ng <[email protected]>",
"Daniel Fox <[email protected]>",
"Marin Minnerly <[email protected]>",
]
repository = "https://github.com/ghostnaps/jest-luau"
license = "MIT"
workspace_members = ["src/*"]
pesde_version = "0.5.0-rc.16"
private = true

[target]
environment = "lune"

[scripts]
roblox_sync_config_generator = ".pesde/scripts/roblox_sync_config_generator.luau"
sourcemap_generator = ".pesde/scripts/sourcemap_generator.luau"

[indices]
default = "https://github.com/daimond113/pesde-index"

[dev_dependencies]
scripts = { name = "pesde/scripts_rojo", version = "^0.1.0", target = "lune" }
23 changes: 0 additions & 23 deletions rotriever.toml

This file was deleted.

8 changes: 0 additions & 8 deletions src/.robloxrc

This file was deleted.

4 changes: 4 additions & 0 deletions src/diff-sequences/.pesde/roblox_sync_config_generator.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
local process = require("@lune/process")
local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME

require(home_dir .. "/.pesde/scripts/lune/rojo/roblox_sync_config_generator.luau")
4 changes: 4 additions & 0 deletions src/diff-sequences/.pesde/sourcemap_generator.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
local process = require("@lune/process")
local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME

require(home_dir .. "/.pesde/scripts/lune/rojo/sourcemap_generator.luau")
6 changes: 0 additions & 6 deletions src/diff-sequences/default.project.json

This file was deleted.

21 changes: 21 additions & 0 deletions src/diff-sequences/pesde.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name = "ghostnaps/diff_sequences"
description = "Compare items in two sequences to find a longest common subsequence."
version = "0.1.0"

[target]
environment = "roblox"
lib = "src/init.lua"
build_files = ["src"]

[scripts]
roblox_sync_config_generator = ".pesde/roblox_sync_config_generator.luau"
sourcemap_generator = ".pesde/sourcemap_generator.luau"

[wally_indices]
default = "https://github.com/UpliftGames/wally-index"

[dependencies]
LuauPolyfill = { wally = "wally#jsdotlua/luau-polyfill", version = "^1.2.7" }

[dev_dependencies]
JestGlobals = { workspace = "ghostnaps/jest_globals", version = "^" }
21 changes: 0 additions & 21 deletions src/diff-sequences/rotriever.toml

This file was deleted.

2 changes: 1 addition & 1 deletion src/diff-sequences/src/__tests__/index.spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local Array = LuauPolyfill.Array
local Error = LuauPolyfill.Error
type Array<T> = LuauPolyfill.Array<T>

local JestGlobals = require(Packages.Dev.JestGlobals)
local JestGlobals = require(Packages.JestGlobals)
local expect = JestGlobals.expect
local describe = JestGlobals.describe
local it = JestGlobals.it
Expand Down
4 changes: 4 additions & 0 deletions src/emittery/.pesde/roblox_sync_config_generator.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
local process = require("@lune/process")
local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME

require(home_dir .. "/.pesde/scripts/lune/rojo/roblox_sync_config_generator.luau")
4 changes: 4 additions & 0 deletions src/emittery/.pesde/sourcemap_generator.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
local process = require("@lune/process")
local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME

require(home_dir .. "/.pesde/scripts/lune/rojo/sourcemap_generator.luau")
6 changes: 0 additions & 6 deletions src/emittery/default.project.json

This file was deleted.

22 changes: 22 additions & 0 deletions src/emittery/pesde.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name = "ghostnaps/emittery"
description = "Simple and modern async event emitter."
version = "0.1.0"

[target]
environment = "roblox"
lib = "src/init.lua"
build_files = ["src"]

[scripts]
roblox_sync_config_generator = ".pesde/roblox_sync_config_generator.luau"
sourcemap_generator = ".pesde/sourcemap_generator.luau"

[wally_indices]
default = "https://github.com/UpliftGames/wally-index"

[dependencies]
LuauPolyfill = { wally = "wally#jsdotlua/luau-polyfill", version = "^1.2.7" }
Promise = { wally = "wally#jsdotlua/promise", version = "^3.5.2" }

[dev_dependencies]
JestGlobals = { workspace = "ghostnaps/jest_globals", version = "^" }
22 changes: 0 additions & 22 deletions src/emittery/rotriever.toml

This file was deleted.

2 changes: 1 addition & 1 deletion src/emittery/src/__tests__/index.spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local setImmediate = setTimeout
local TypeError = Error
type Object = LuauPolyfill.Object

local JestGlobals = require(Packages.Dev.JestGlobals)
local JestGlobals = require(Packages.JestGlobals)
local expect = JestGlobals.expect
local it = JestGlobals.it
local itFIXME = function(description: string, ...: any)
Expand Down
4 changes: 4 additions & 0 deletions src/expect/.pesde/roblox_sync_config_generator.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
local process = require("@lune/process")
local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME

require(home_dir .. "/.pesde/scripts/lune/rojo/roblox_sync_config_generator.luau")
4 changes: 4 additions & 0 deletions src/expect/.pesde/sourcemap_generator.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
local process = require("@lune/process")
local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME

require(home_dir .. "/.pesde/scripts/lune/rojo/sourcemap_generator.luau")
6 changes: 0 additions & 6 deletions src/expect/default.project.json

This file was deleted.

31 changes: 31 additions & 0 deletions src/expect/pesde.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name = "ghostnaps/expect"
version = "0.1.0"

[target]
environment = "roblox"
lib = "src/init.lua"
build_files = ["src"]

[scripts]
roblox_sync_config_generator = ".pesde/roblox_sync_config_generator.luau"
sourcemap_generator = ".pesde/sourcemap_generator.luau"

[wally_indices]
default = "https://github.com/UpliftGames/wally-index"

[dependencies]
LuauPolyfill = { wally = "wally#jsdotlua/luau-polyfill", version = "^1.2.7" }
Promise = { wally = "wally#jsdotlua/promise", version = "^3.5.2" }
RepExp = { wally = "wally#jsdotlua/luau-regexp", version = "^0.2.1" }
JestGetType = { workspace = "ghostnaps/jest_get_type", version = "^" }
JestMessageUtil = { workspace = "ghostnaps/jest_message_util", version = "^" }
JestUtil = { workspace = "ghostnaps/jest_util", version = "^" }
JestMatcherUtils = { workspace = "ghostnaps/jest_matcher_utils", version = "^" }
JestSnapshot = { workspace = "ghostnaps/jest_snapshot", version = "^" }
RobloxShared = { workspace = "ghostnaps/roblox_shared", version = "^" }

[dev_dependencies]
JestGlobals = { workspace = "ghostnaps/jest_globals", version = "^" }
JestMock = { workspace = "ghostnaps/jest_mock", version = "^" }
TestUtils = { workspace = "ghostnaps/test_utils", version = "^" }
ChalkLua = { wally = "wally#jsdotlua/chalk", version = "^0.2.1" }
32 changes: 0 additions & 32 deletions src/expect/rotriever.toml

This file was deleted.

4 changes: 2 additions & 2 deletions src/expect/src/__tests__/assertionCounts.test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
*
]]
local Packages = script.Parent.Parent.Parent
local JestGlobals = require(Packages.Dev.JestGlobals)
local JestGlobals = require(Packages.JestGlobals)
local describe = JestGlobals.describe
local expect = JestGlobals.expect
local it = JestGlobals.it
local alignedAnsiStyleSerializer = require(Packages.Dev.TestUtils).alignedAnsiStyleSerializer
local alignedAnsiStyleSerializer = require(Packages.TestUtils).alignedAnsiStyleSerializer
local jestExpect = require(script.Parent.Parent)

expect.addSnapshotSerializer(alignedAnsiStyleSerializer)
Expand Down
4 changes: 2 additions & 2 deletions src/expect/src/__tests__/asymmetricMatchers.roblox.spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
local CurrentModule = script.Parent.Parent
local Packages = CurrentModule.Parent

local chalk = require(Packages.Dev.ChalkLua)
local chalk = require(Packages.ChalkLua)

local JestGlobals = require(Packages.Dev.JestGlobals)
local JestGlobals = require(Packages.JestGlobals)
local expect = JestGlobals.expect
local describe = JestGlobals.describe
local it = JestGlobals.it
Expand Down
2 changes: 1 addition & 1 deletion src/expect/src/__tests__/asymmetricMatchers.spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local Boolean = LuauPolyfill.Boolean
-- local Symbol = LuauPolyfill.Symbol
-- local Promise = require(Packages.Promise)
-- ROBLOX deviation END
local JestGlobals = require(Packages.Dev.JestGlobals)
local JestGlobals = require(Packages.JestGlobals)
local describe = JestGlobals.describe
local expect = JestGlobals.expect
-- ROBLOX deviation START: not used
Expand Down
4 changes: 2 additions & 2 deletions src/expect/src/__tests__/extend.spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
local CurrentModule = script.Parent.Parent
local Packages = CurrentModule.Parent

local JestGlobals = require(Packages.Dev.JestGlobals)
local JestGlobals = require(Packages.JestGlobals)
local it = JestGlobals.it
local beforeAll = JestGlobals.beforeAll
local expect = JestGlobals.expect
Expand All @@ -21,7 +21,7 @@ local LuauPolyfill = require(Packages.LuauPolyfill)
local Object = LuauPolyfill.Object
local Symbol = LuauPolyfill.Symbol

local alignedAnsiStyleSerializer = require(Packages.Dev.TestUtils).alignedAnsiStyleSerializer
local alignedAnsiStyleSerializer = require(Packages.TestUtils).alignedAnsiStyleSerializer

local matcherUtils = require(Packages.JestMatcherUtils)

Expand Down
Loading