MCPcopy Create free account
hub / github.com/dataform-co/dataform / test

Function test

testing/test.ts:15–26  ·  view source on GitHub ↗
(
  nameOrOptions: ITestOptions | string,
  optionsOrFn: Omit<ITestOptions, "name"> | (() => void),
  fn?: () => void
)

Source from the content-addressed store, hash-verified

13 fn: (ctx?: ITestOptions) => void
14): void;
15export function test(
16 nameOrOptions: ITestOptions | string,
17 optionsOrFn: Omit<ITestOptions, "name"> | (() => void),
18 fn?: () => void
19): void {
20 const newTest = Test.create(nameOrOptions, optionsOrFn, fn);
21 if (Suite.globalStack.length > 0) {
22 Suite.globalStack.slice(-1)[0].addTest(newTest);
23 } else {
24 throw new Error("Cannot create a top level test, must be created in a suite.");
25 }
26}
27
28export class Test {
29 public static readonly DEFAULT_TIMEOUT_MILLIS = 30000;

Callers 15

main_test.tsFile · 0.90
compilers_test.tsFile · 0.90
utils_test.tsFile · 0.90
test_test.tsFile · 0.90
table_test.tsFile · 0.90
assertion_test.tsFile · 0.90
index_test.tsFile · 0.90

Calls 2

addTestMethod · 0.80
createMethod · 0.65

Tested by

no test coverage detected