first commit
This commit is contained in:
commit
5302ecc6cc
43 changed files with 2530 additions and 0 deletions
16
tests/runners/util/tests.ts
Normal file
16
tests/runners/util/tests.ts
Normal file
|
@ -0,0 +1,16 @@
|
|||
import { TestBootstrap } from "@rbxts/testez"
|
||||
|
||||
export function test(
|
||||
roots: Instance[]
|
||||
): LuaTuple<[completed: true, result: boolean] | [completed: false, error: string]> {
|
||||
print()
|
||||
const call = xpcall(
|
||||
() => {
|
||||
const results = TestBootstrap.run(roots)
|
||||
return results.failureCount === 0
|
||||
},
|
||||
(err) => debug.traceback(tostring(err))
|
||||
)
|
||||
print()
|
||||
return call
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue