Skip to content

Commit 9071824

Browse files
committed
DO NOT MERGE IT
1 parent 5bc3021 commit 9071824

File tree

897 files changed

+42539
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

897 files changed

+42539
-3
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.DS_store
22
.DS_Store
3-
build
3+
# build
44

55
.idea
66
.vscode
@@ -16,5 +16,5 @@ npm-debug.log
1616
.editorconfig
1717
.eslintcache
1818
hermione-report
19-
bundle.compat.js
20-
bundle.native.js
19+
# bundle.compat.js
20+
# bundle.native.js

build/package.json

Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
{
2+
"name": "testplane",
3+
"version": "8.34.5",
4+
"description": "Tests framework based on mocha and wdio",
5+
"main": "build/src/index.js",
6+
"files": [
7+
"build",
8+
"typings"
9+
],
10+
"exports": {
11+
".": {
12+
"require": "./build/src/index.js",
13+
"import": "./build/src/index.js"
14+
},
15+
"./unstable": {
16+
"require": "./build/src/unstable.js",
17+
"import": "./build/src/unstable.js"
18+
}
19+
},
20+
"scripts": {
21+
"build": "tsc --build && npm run build-bundles && npm run copy-static && node scripts/create-client-scripts-symlinks.js",
22+
"copy-static": "copyfiles 'src/browser/client-scripts/*' 'src/**/[!cache]*/autogenerated/**/*.json' build",
23+
"build-node-bundle": "esbuild ./src/bundle/cjs/index.ts --outdir=./build/src/bundle/cjs --bundle --format=cjs --platform=node --target=ES2021",
24+
"build-browser-bundle": "node ./src/browser/client-scripts/build.js",
25+
"build-bundles": "concurrently -c 'auto' 'npm:build-browser-bundle' 'npm:build-node-bundle --minify'",
26+
"create-client-scripts-symlinks": "node scripts/create-client-scripts-symlinks.js",
27+
"resolve-ubuntu-dependencies": "ts-node ./src/browser-installer/ubuntu-packages/collect-dependencies",
28+
"check-types": "tsc --project test/tsconfig.json",
29+
"clean": "rimraf build/ *.tsbuildinfo",
30+
"lint": "eslint --cache . && prettier --check .",
31+
"reformat": "eslint --fix . && prettier --write .",
32+
"prettier-watch": "onchange '**' --exclude-path .prettierignore -- prettier --write {{changed}}",
33+
"test-unit": "_mocha \"test/!(integration)/**/*.js\"",
34+
"test": "npm run test-unit && npm run check-types && npm run lint",
35+
"test-integration": "mocha -r ts-node/register -r test/integration/*/**",
36+
"toc": "doctoc docs --title '### Contents'",
37+
"precommit": "npm run lint",
38+
"prepack": "npm run clean && npm run build",
39+
"preversion": "npm run lint && npm test",
40+
"commitmsg": "commitlint -e",
41+
"release": "standard-version",
42+
"watch": "npm run copy-static && npm run build-browser-bundle && concurrently -c 'auto' 'npm:watch:src' 'npm:watch:bundle'",
43+
"watch:src": "tsc --build --watch",
44+
"watch:bundle": "npm run build-node-bundle -- --watch"
45+
},
46+
"repository": {
47+
"type": "git",
48+
"url": "git://github.com/gemini-testing/testplane.git"
49+
},
50+
"homepage": "https://testplane.io/",
51+
"engines": {
52+
"node": ">= 18.0.0"
53+
},
54+
"keywords": [
55+
"testplane",
56+
"hermione",
57+
"webdriverio",
58+
"mocha",
59+
"test"
60+
],
61+
"bin": {
62+
"testplane": "./bin/testplane",
63+
"hermione": "./bin/hermione"
64+
},
65+
"license": "MIT",
66+
"dependencies": {
67+
"@babel/code-frame": "7.24.2",
68+
"@gemini-testing/commander": "2.15.4",
69+
"@jspm/core": "2.0.1",
70+
"@jsquash/png": "3.1.1",
71+
"@puppeteer/browsers": "2.7.1",
72+
"@testplane/devtools": "8.32.3",
73+
"@testplane/wdio-protocols": "9.4.6",
74+
"@testplane/wdio-utils": "9.5.3",
75+
"@testplane/webdriverio": "9.5.21",
76+
"@vitest/spy": "2.1.4",
77+
"buffer-crc32": "1.0.0",
78+
"chalk": "2.4.2",
79+
"clear-require": "1.0.1",
80+
"cli-progress": "3.12.0",
81+
"debug": "2.6.9",
82+
"edgedriver": "5.6.1",
83+
"error-stack-parser": "2.1.4",
84+
"esbuild": "0.25.8",
85+
"expect-webdriverio": "3.6.0",
86+
"extract-zip": "2.0.1",
87+
"fastq": "1.13.0",
88+
"fs-extra": "7.0.1",
89+
"geckodriver": "4.5.0",
90+
"gemini-configparser": "1.4.2",
91+
"get-port": "5.1.1",
92+
"import-meta-resolve": "4.0.0",
93+
"load-esm": "1.0.2",
94+
"local-pkg": "0.4.3",
95+
"lodash": "4.17.21",
96+
"looks-same": "10.0.1",
97+
"micromatch": "4.0.5",
98+
"mocha": "10.2.0",
99+
"pirates": "4.0.7",
100+
"plugins-loader": "1.3.4",
101+
"png-validator": "1.1.0",
102+
"recast": "0.23.6",
103+
"resolve.exports": "2.0.2",
104+
"sizzle": "2.3.6",
105+
"socket.io": "4.7.5",
106+
"socket.io-client": "4.7.5",
107+
"source-map": "0.7.6",
108+
"strftime": "0.10.2",
109+
"strip-ansi": "6.0.1",
110+
"temp": "0.8.3",
111+
"tinyspy": "3.0.2",
112+
"urijs": "1.19.11",
113+
"url-join": "4.0.1",
114+
"vite": "5.1.6",
115+
"wait-port": "1.1.0",
116+
"worker-farm": "1.7.0",
117+
"ws": "8.18.3",
118+
"yallist": "3.1.1"
119+
},
120+
"devDependencies": {
121+
"@commitlint/cli": "^19.0.3",
122+
"@commitlint/config-conventional": "^19.0.3",
123+
"@cspotcode/source-map-support": "0.8.0",
124+
"@rrweb/record": "2.0.0-alpha.18",
125+
"@sinonjs/fake-timers": "10.3.0",
126+
"@swc/core": "1.13.3",
127+
"@testplane/wdio-types": "9.5.3",
128+
"@types/babel__code-frame": "7.0.6",
129+
"@types/browserify": "12.0.40",
130+
"@types/chai": "4.3.4",
131+
"@types/chai-as-promised": "7.1.5",
132+
"@types/cli-progress": "3.11.6",
133+
"@types/debug": "4.1.12",
134+
"@types/escape-string-regexp": "2.0.1",
135+
"@types/fs-extra": "11.0.4",
136+
"@types/js-levenshtein": "1.1.3",
137+
"@types/jsdom": "21.1.7",
138+
"@types/lodash": "4.14.191",
139+
"@types/micromatch": "4.0.9",
140+
"@types/mocha": "10.0.1",
141+
"@types/node": "18.19.3",
142+
"@types/proxyquire": "1.3.28",
143+
"@types/set-cookie-parser": "2.4.10",
144+
"@types/sinon": "17.0.1",
145+
"@types/sinonjs__fake-timers": "8.1.2",
146+
"@types/strftime": "0.9.8",
147+
"@types/urijs": "1.19.25",
148+
"@types/url-join": "4.0.3",
149+
"@types/yallist": "4.0.4",
150+
"@typescript-eslint/eslint-plugin": "6.12.0",
151+
"@typescript-eslint/parser": "6.12.0",
152+
"aliasify": "1.9.0",
153+
"app-module-path": "2.2.0",
154+
"browserify": "13.3.0",
155+
"chai": "4.2.0",
156+
"chai-as-promised": "7.1.1",
157+
"concurrently": "8.2.2",
158+
"copyfiles": "2.4.1",
159+
"doctoc": "2.2.0",
160+
"eslint": "8.25.0",
161+
"eslint-config-gemini-testing": "2.8.0",
162+
"eslint-config-prettier": "8.7.0",
163+
"execa": "5.1.1",
164+
"glob-extra": "5.0.2",
165+
"husky": "0.11.4",
166+
"js-levenshtein": "1.1.6",
167+
"jsdom": "^24.0.0",
168+
"jsdom-global": "3.0.2",
169+
"onchange": "7.1.0",
170+
"prettier": "2.8.4",
171+
"proxyquire": "1.8.0",
172+
"rimraf": "4.1.2",
173+
"sinon": "17.0.1",
174+
"sinon-chai": "3.7.0",
175+
"standard-version": "9.5.0",
176+
"ts-node": "10.9.1",
177+
"type-fest": "3.11.1",
178+
"typescript": "5.3.2",
179+
"uglifyify": "3.0.4"
180+
},
181+
"peerDependencies": {
182+
"@cspotcode/source-map-support": ">=0.7.0",
183+
"@swc/core": ">=1.3.96",
184+
"ts-node": ">=10.5.0"
185+
},
186+
"peerDependenciesMeta": {
187+
"ts-node": {
188+
"optional": true
189+
},
190+
"@cspotcode/source-map-support": {
191+
"optional": true
192+
},
193+
"@swc/core": {
194+
"optional": true
195+
}
196+
}
197+
}

build/src/base-testplane.d.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Config } from "./config";
2+
import { AsyncEmitter, InterceptedEvent, Events, InterceptHandler, Interceptor } from "./events";
3+
import Errors from "./errors";
4+
import { ConfigInput } from "./config/types";
5+
export declare abstract class BaseTestplane extends AsyncEmitter {
6+
protected _interceptors: Interceptor[];
7+
protected _config: Config;
8+
static create<T extends BaseTestplane>(this: new (config?: string | ConfigInput) => T, config?: string | ConfigInput): T;
9+
protected constructor(config?: string | ConfigInput);
10+
protected _init(): Promise<void>;
11+
get config(): Config;
12+
get events(): Events;
13+
get errors(): typeof Errors;
14+
intercept(event: InterceptedEvent, handler: InterceptHandler): this;
15+
abstract isWorker(): boolean;
16+
protected _setLogLevel(): void;
17+
protected _loadPlugins(): void;
18+
}

build/src/base-testplane.js

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/src/base-testplane.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import _ from "lodash";
2+
import { BrowserName } from "../../browser/types";
3+
export declare const installChrome: (browserName: typeof BrowserName.CHROME | typeof BrowserName.CHROMEHEADLESSSHELL, version: string, { force, needWebDriver, needUbuntuPackages }?: {
4+
force?: boolean | undefined;
5+
needWebDriver?: boolean | undefined;
6+
needUbuntuPackages?: boolean | undefined;
7+
}) => Promise<string>;
8+
export declare const resolveLatestChromeVersion: ((force?: any) => Promise<string>) & _.MemoizedFunction;

build/src/browser-installer/chrome/browser.js

Lines changed: 96 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)