mirror of
https://github.com/AmberGraceRblx/luau-promise.git
synced 2025-04-24 15:50:01 +00:00
Move to selene from luacheck
This commit is contained in:
parent
0b8d55a4c3
commit
e7033308ec
4 changed files with 70 additions and 25 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
||||||
node_modules/
|
node_modules/
|
||||||
.vscode
|
.vscode
|
||||||
build
|
build
|
||||||
|
roblox.toml
|
24
.luacheckrc
24
.luacheckrc
|
@ -1,24 +0,0 @@
|
||||||
stds.roblox = {
|
|
||||||
read_globals = {
|
|
||||||
"script", "spawn", "warn", "Instance",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
stds.testez = {
|
|
||||||
read_globals = {
|
|
||||||
"describe",
|
|
||||||
"it", "itFOCUS", "itSKIP",
|
|
||||||
"FOCUS", "SKIP", "HACK_NO_XPCALL",
|
|
||||||
"expect",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ignore = {
|
|
||||||
"212", -- unused arguments
|
|
||||||
}
|
|
||||||
|
|
||||||
std = "lua51+roblox"
|
|
||||||
|
|
||||||
files["**/*.spec.lua"] = {
|
|
||||||
std = "+testez",
|
|
||||||
}
|
|
1
selene.toml
Normal file
1
selene.toml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
std = "roblox+testez"
|
67
testez.toml
Normal file
67
testez.toml
Normal file
|
@ -0,0 +1,67 @@
|
||||||
|
# TestEZ
|
||||||
|
[[afterAll.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[[afterEach.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[[beforeAll.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[[beforeEach.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[[describe.args]]
|
||||||
|
type = "string"
|
||||||
|
|
||||||
|
[[describe.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[[describeFOCUS.args]]
|
||||||
|
type = "string"
|
||||||
|
|
||||||
|
[[describeFOCUS.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[[describeSKIP.args]]
|
||||||
|
type = "string"
|
||||||
|
|
||||||
|
[[describeSKIP.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[[expect.args]]
|
||||||
|
type = "any"
|
||||||
|
|
||||||
|
[[FIXME.args]]
|
||||||
|
type = "string"
|
||||||
|
required = false
|
||||||
|
|
||||||
|
[FOCUS]
|
||||||
|
args = []
|
||||||
|
|
||||||
|
[[it.args]]
|
||||||
|
type = "string"
|
||||||
|
|
||||||
|
[[it.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[[itFIXME.args]]
|
||||||
|
type = "string"
|
||||||
|
|
||||||
|
[[itFIXME.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[[itFOCUS.args]]
|
||||||
|
type = "string"
|
||||||
|
|
||||||
|
[[itFOCUS.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[[itSKIP.args]]
|
||||||
|
type = "string"
|
||||||
|
|
||||||
|
[[itSKIP.args]]
|
||||||
|
type = "function"
|
||||||
|
|
||||||
|
[SKIP]
|
||||||
|
args = []
|
Loading…
Reference in a new issue