twd-js 0.5.2 → 0.7.0
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.
- package/README.md +19 -0
- package/dist/global.d.ts +8 -0
- package/dist/index.cjs.js +320 -0
- package/dist/index.d.ts +1 -1
- package/dist/{twd.es.js → index.es.js} +3838 -3808
- package/dist/mock-sw.js +1 -1
- package/dist/plugin/removeMockServiceWorker.d.ts +18 -0
- package/dist/runner-ci.cjs.js +5 -0
- package/dist/runner-ci.d.ts +12 -0
- package/dist/runner-ci.es.js +304 -0
- package/dist/runner.cjs.js +1 -0
- package/dist/runner.d.ts +41 -0
- package/dist/runner.es.js +121 -0
- package/dist/twd.d.ts +13 -34
- package/dist/ui/TestList.d.ts +14 -4
- package/dist/ui/TestListItem.d.ts +16 -6
- package/dist/ui/buildTreeFromHandlers.d.ts +14 -0
- package/dist/ui/hooks/useLayout.d.ts +6 -0
- package/dist/vite-plugin.cjs.js +1 -0
- package/dist/vite-plugin.d.ts +1 -0
- package/dist/vite-plugin.es.js +18 -0
- package/package.json +21 -3
- package/dist/twd.umd.js +0 -320
- package/dist/twdRegistry.d.ts +0 -18
- package/dist/ui/groupTests.d.ts +0 -7
package/dist/twdRegistry.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type TestFn = () => Promise<void> | void;
|
|
2
|
-
export interface TestCase {
|
|
3
|
-
name: string;
|
|
4
|
-
fn: TestFn;
|
|
5
|
-
status?: "idle" | "pass" | "fail" | "skip" | "running";
|
|
6
|
-
only?: boolean;
|
|
7
|
-
skip?: boolean;
|
|
8
|
-
logs?: string[];
|
|
9
|
-
suite: string[];
|
|
10
|
-
}
|
|
11
|
-
export declare const tests: TestCase[];
|
|
12
|
-
export declare const register: (name: string, fn: TestFn, opts?: {
|
|
13
|
-
only?: boolean;
|
|
14
|
-
skip?: boolean;
|
|
15
|
-
}) => void;
|
|
16
|
-
export declare const clearTests: () => void;
|
|
17
|
-
export declare const pushSuite: (name: string) => void;
|
|
18
|
-
export declare const popSuite: () => void;
|
package/dist/ui/groupTests.d.ts
DELETED