qunitx 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,30 @@
1
- // Type stub for jsr:@std/testing/bdd. Deno resolves the real module at runtime.
1
+ // Auto-generated by build.ts from jsr:@std/testing/bdd. Do not edit manually.
2
2
  declare module 'jsr:@std/testing/bdd' {
3
- function describe(name: string, fn: () => void): void;
4
- function describe(name: string, options: object, fn: () => void): void;
5
- function it(name: string, options: object, fn: () => void | Promise<void>): void;
6
- function beforeAll(fn: () => void | Promise<void>): void;
7
- function afterAll(fn: () => void | Promise<void>): void;
8
- export { describe, it, beforeAll, afterAll };
3
+ interface DescribeDefinition<T> {
4
+ fn?: () => void | undefined;
5
+ suite?: TestSuite<T>;
6
+ beforeAll?: (() => void | Promise<void>) | (() => void | Promise<void>)[];
7
+ afterAll?: (() => void | Promise<void>) | (() => void | Promise<void>)[];
8
+ beforeEach?: (() => void | Promise<void>) | (() => void | Promise<void>)[];
9
+ afterEach?: (() => void | Promise<void>) | (() => void | Promise<void>)[];
10
+ }
11
+ interface ItDefinition<T> {
12
+ fn: (t: Deno.TestContext) => void | Promise<void>;
13
+ suite?: TestSuite<T>;
14
+ }
15
+ interface TestSuite<T> {
16
+ symbol: symbol;
17
+ }
18
+ type ItArgs<T> = [ItDefinition<T>] | [string, Omit<ItDefinition<T>, "name">] | [string, (t: Deno.TestContext) => void | Promise<void>] | [(t: Deno.TestContext) => void | Promise<void>] | [string, Omit<ItDefinition<T>, "fn" | "name">, (t: Deno.TestContext) => void | Promise<void>] | [Omit<ItDefinition<T>, "fn">, (t: Deno.TestContext) => void | Promise<void>] | [Omit<ItDefinition<T>, "fn" | "name">, (t: Deno.TestContext) => void | Promise<void>] | [TestSuite<T>, string, Omit<ItDefinition<T>, "name" | "suite">] | [TestSuite<T>, string, (t: Deno.TestContext) => void | Promise<void>] | [TestSuite<T>, (t: Deno.TestContext) => void | Promise<void>] | [TestSuite<T>, string, Omit<ItDefinition<T>, "fn" | "name" | "suite">, (t: Deno.TestContext) => void | Promise<void>] | [TestSuite<T>, Omit<ItDefinition<T>, "fn" | "suite">, (t: Deno.TestContext) => void | Promise<void>] | [TestSuite<T>, Omit<ItDefinition<T>, "fn" | "name" | "suite">, (t: Deno.TestContext) => void | Promise<void>];
19
+ function it<T>(...args: ItArgs<T>): void;
20
+ function test<T>(...args: ItArgs<T>): void;
21
+ function beforeAll<T>(fn: () => void | Promise<void>): void;
22
+ function before<T>(fn: () => void | Promise<void>): void;
23
+ function afterAll<T>(fn: () => void | Promise<void>): void;
24
+ function after<T>(fn: () => void | Promise<void>): void;
25
+ function beforeEach<T>(fn: () => void | Promise<void>): void;
26
+ function afterEach<T>(fn: () => void | Promise<void>): void;
27
+ type DescribeArgs<T> = [DescribeDefinition<T>] | [string] | [string, Omit<DescribeDefinition<T>, "name">] | [string, () => void | undefined] | [() => void | undefined] | [string, Omit<DescribeDefinition<T>, "fn" | "name">, () => void | undefined] | [Omit<DescribeDefinition<T>, "fn">, () => void | undefined] | [Omit<DescribeDefinition<T>, "fn" | "name">, () => void | undefined] | [TestSuite<T>, string] | [TestSuite<T>, string, Omit<DescribeDefinition<T>, "name" | "suite">] | [TestSuite<T>, string, () => void | undefined] | [TestSuite<T>, () => void | undefined] | [TestSuite<T>, string, Omit<DescribeDefinition<T>, "fn" | "name" | "suite">, () => void | undefined] | [TestSuite<T>, Omit<DescribeDefinition<T>, "fn" | "suite">, () => void | undefined] | [TestSuite<T>, Omit<DescribeDefinition<T>, "fn" | "name" | "suite">, () => void | undefined];
28
+ function describe<T>(...args: DescribeArgs<T>): TestSuite<T>;
29
+ export { DescribeDefinition, ItDefinition, TestSuite, ItArgs, it, test, beforeAll, before, afterAll, after, beforeEach, afterEach, DescribeArgs, describe };
9
30
  }