testplane 8.22.0 → 8.22.2
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/build/package.json +8 -9
- package/build/src/browser/browser.d.ts +2 -2
- package/build/src/browser/browser.js.map +1 -1
- package/build/src/browser/existing-browser.js +1 -1
- package/build/src/browser/existing-browser.js.map +1 -1
- package/build/src/bundle/@wdio-utils.d.ts +1 -0
- package/build/src/bundle/@wdio-utils.js +7 -0
- package/build/src/bundle/@wdio-utils.js.map +1 -0
- package/build/src/bundle/{index.js → cjs/index.js} +24261 -3721
- package/build/src/bundle/glob-extra.d.ts +3 -0
- package/build/src/bundle/glob-extra.js +8 -0
- package/build/src/bundle/glob-extra.js.map +1 -0
- package/build/src/{test-reader → bundle}/test-transformer.js +4 -3
- package/build/src/bundle/test-transformer.js.map +1 -0
- package/build/src/config/types.d.ts +4 -8
- package/build/src/index.d.ts +2 -1
- package/build/src/runner/browser-env/vite/browser-modules/tsconfig.tsbuildinfo +1 -1
- package/build/src/test-reader/sets-builder/index.js +1 -1
- package/build/src/test-reader/sets-builder/index.js.map +1 -1
- package/build/src/test-reader/sets-builder/test-set.d.ts +1 -1
- package/build/src/test-reader/sets-builder/test-set.js +1 -1
- package/build/src/test-reader/sets-builder/test-set.js.map +1 -1
- package/build/src/test-reader/test-parser.js +1 -1
- package/build/src/test-reader/test-parser.js.map +1 -1
- package/build/src/types/index.d.ts +1 -1
- package/build/src/vendors/uglifyify/index.d.ts +0 -0
- package/build/src/vendors/uglifyify/index.js +2 -0
- package/build/src/vendors/uglifyify/index.js.map +1 -0
- package/package.json +8 -9
- package/build/src/test-reader/test-transformer.js.map +0 -1
- /package/build/src/{test-reader → bundle}/test-transformer.d.ts +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isMask = exports.expandPaths = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
5
|
+
const bundle = require("./cjs");
|
|
6
|
+
exports.expandPaths = bundle.globExtra.expandPaths;
|
|
7
|
+
exports.isMask = bundle.globExtra.isMask;
|
|
8
|
+
//# sourceMappingURL=glob-extra.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glob-extra.js","sourceRoot":"","sources":["../../../src/bundle/glob-extra.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEnB,QAAA,WAAW,GAA4C,MAAM,CAAC,SAAS,CAAC,WAAW,CAAC;AACpF,QAAA,MAAM,GAAuC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.TRANSFORM_EXTENSIONS = exports.setupTransformHook = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
5
5
|
// TODO: use import instead require. Currently require is used because ts build filed from bundle folder even if it excluded in tsconfig
|
|
6
|
-
|
|
7
|
-
exports.
|
|
6
|
+
const bundle = require("./cjs");
|
|
7
|
+
exports.setupTransformHook = bundle.setupTransformHook;
|
|
8
|
+
exports.TRANSFORM_EXTENSIONS = bundle.TRANSFORM_EXTENSIONS;
|
|
8
9
|
//# sourceMappingURL=test-transformer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-transformer.js","sourceRoot":"","sources":["../../../src/bundle/test-transformer.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,wIAAwI;AACxI,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEnB,QAAA,kBAAkB,GAA8D,MAAM,CAAC,kBAAkB,CAAC;AAC1G,QAAA,oBAAoB,GAAa,MAAM,CAAC,oBAAoB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
|
+
/// <reference types="mocha" />
|
|
3
4
|
import type { BrowserConfig } from "./browser-config";
|
|
4
5
|
import type { BrowserTestRunEnvOptions } from "../runner/browser-env/vite/types";
|
|
5
6
|
import type { Test } from "../types";
|
|
@@ -125,13 +126,8 @@ export interface ExpectOptsConfig {
|
|
|
125
126
|
wait: number;
|
|
126
127
|
interval: number;
|
|
127
128
|
}
|
|
128
|
-
export interface MochaOpts {
|
|
129
|
-
|
|
130
|
-
slow?: number;
|
|
131
|
-
/** timeout in milliseconds or time string like '1s'. */
|
|
132
|
-
timeout?: number;
|
|
133
|
-
/** string or regexp to filter tests with. */
|
|
134
|
-
grep?: string | RegExp;
|
|
129
|
+
export interface MochaOpts extends Omit<Mocha.MochaOptions, "ui"> {
|
|
130
|
+
ui?: string | ((suite: Mocha.Suite) => void);
|
|
135
131
|
}
|
|
136
132
|
export interface SystemConfig {
|
|
137
133
|
debug: boolean;
|
|
@@ -140,7 +136,7 @@ export interface SystemConfig {
|
|
|
140
136
|
ctx: {
|
|
141
137
|
[name: string]: unknown;
|
|
142
138
|
};
|
|
143
|
-
patternsOnReject: Array<string>;
|
|
139
|
+
patternsOnReject: Array<string | RegExp>;
|
|
144
140
|
workers: number;
|
|
145
141
|
testsPerWorker: number;
|
|
146
142
|
diffColor: string;
|
package/build/src/index.d.ts
CHANGED
|
@@ -6,12 +6,13 @@ import { GlobalHelper } from "./types";
|
|
|
6
6
|
export { Testplane as default } from "./testplane";
|
|
7
7
|
export { Key } from "webdriverio";
|
|
8
8
|
export * from "./mock";
|
|
9
|
-
export type { WdioBrowser, TestResult, Test, Suite, TestError, HermioneCtx, GlobalHelper, TestplaneCtx, TestFunctionCtx, } from "./types";
|
|
9
|
+
export type { WdioBrowser, TestResult, Test, Suite, TestError, HermioneCtx, GlobalHelper, TestplaneCtx, TestFunction, TestFunctionCtx, } from "./types";
|
|
10
10
|
export type { Config } from "./config";
|
|
11
11
|
export type { ConfigInput, AssertViewOpts } from "./config/types";
|
|
12
12
|
export type { TestCollection, FormatterTreeSuite, FormatterTreeTest, FormatterTreeMainRunnable, FormatterListTest, } from "./test-collection";
|
|
13
13
|
export type { StatsResult } from "./stats";
|
|
14
14
|
import type { TestDefinition, SuiteDefinition, TestHookDefinition } from "./test-reader/test-object/types";
|
|
15
|
+
export type { TestDefinition, SuiteDefinition, TestHookDefinition };
|
|
15
16
|
declare global {
|
|
16
17
|
var it: TestDefinition;
|
|
17
18
|
var describe: SuiteDefinition;
|