-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
618 changed files
with
88,724 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.DS_store | ||
.DS_Store | ||
build | ||
#build | ||
|
||
.idea | ||
.vscode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
{ | ||
"name": "testplane", | ||
"version": "8.19.4", | ||
"description": "Tests framework based on mocha and wdio", | ||
"main": "build/src/index.js", | ||
"files": [ | ||
"build", | ||
"typings" | ||
], | ||
"scripts": { | ||
"build": "tsc --build && npm run copy-static && npm run build-bundles", | ||
"copy-static": "copyfiles 'src/browser/client-scripts/*' build", | ||
"build-node-bundle": "esbuild ./src/bundle/index.ts --outdir=./build/src/bundle --bundle --format=cjs --platform=node --target=ES2021", | ||
"build-browser-bundle": "node ./src/browser/client-scripts/build.js", | ||
"build-bundles": "concurrently -c 'auto' 'npm:build-browser-bundle' 'npm:build-node-bundle --minify'", | ||
"check-types": "tsc --project tsconfig.spec.json", | ||
"clean": "rimraf build/ *.tsbuildinfo", | ||
"lint": "eslint --cache . && prettier --check .", | ||
"reformat": "eslint --fix . && prettier --write .", | ||
"prettier-watch": "onchange '**' --exclude-path .prettierignore -- prettier --write {{changed}}", | ||
"test-unit": "_mocha test/", | ||
"test": "npm run test-unit && npm run check-types && npm run lint", | ||
"toc": "doctoc docs --title '### Contents'", | ||
"precommit": "npm run lint", | ||
"prepack": "npm run clean && npm run build", | ||
"preversion": "npm run lint && npm test", | ||
"commitmsg": "commitlint -e", | ||
"release": "standard-version", | ||
"watch": "npm run copy-static && npm run build-browser-bundle && concurrently -c 'auto' 'npm:watch:src' 'npm:watch:bundle'", | ||
"watch:src": "tsc --build --watch", | ||
"watch:bundle": "npm run build-node-bundle -- --watch" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/gemini-testing/testplane.git" | ||
}, | ||
"homepage": "https://testplane.io/", | ||
"engines": { | ||
"node": ">= 18.0.0" | ||
}, | ||
"keywords": [ | ||
"testplane", | ||
"hermione", | ||
"webdriverio", | ||
"mocha", | ||
"test" | ||
], | ||
"bin": { | ||
"testplane": "./bin/testplane", | ||
"hermione": "./bin/hermione" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@babel/code-frame": "7.24.2", | ||
"@gemini-testing/commander": "2.15.3", | ||
"@jspm/core": "2.0.1", | ||
"@types/mocha": "10.0.1", | ||
"@wdio/globals": "8.21.0", | ||
"@wdio/protocols": "8.22.0", | ||
"@wdio/types": "8.21.0", | ||
"@wdio/utils": "8.35.0", | ||
"@wdio/utils-cjs": "npm:@wdio/utils@7.26.0", | ||
"bluebird": "3.5.1", | ||
"chalk": "2.4.2", | ||
"clear-require": "1.0.1", | ||
"debug": "2.6.9", | ||
"devtools": "8.21.0", | ||
"error-stack-parser": "2.1.4", | ||
"escape-string-regexp": "1.0.5", | ||
"expect-webdriverio": "3.5.3", | ||
"fastq": "1.13.0", | ||
"fs-extra": "5.0.0", | ||
"gemini-configparser": "1.4.1", | ||
"get-port": "5.1.1", | ||
"glob-extra": "5.0.2", | ||
"import-meta-resolve": "4.0.0", | ||
"local-pkg": "0.4.3", | ||
"lodash": "4.17.21", | ||
"looks-same": "9.0.0", | ||
"micromatch": "4.0.5", | ||
"mocha": "10.2.0", | ||
"plugins-loader": "1.3.3", | ||
"png-validator": "1.1.0", | ||
"resolve.exports": "2.0.2", | ||
"sharp": "0.32.6", | ||
"sizzle": "2.3.6", | ||
"socket.io": "4.7.5", | ||
"socket.io-client": "4.7.5", | ||
"source-map": "0.7.4", | ||
"strftime": "0.10.2", | ||
"strip-ansi": "6.0.1", | ||
"temp": "0.8.3", | ||
"urijs": "1.19.11", | ||
"url-join": "4.0.1", | ||
"vite": "5.1.6", | ||
"webdriverio": "8.21.0", | ||
"worker-farm": "1.7.0", | ||
"yallist": "3.1.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.24.1", | ||
"@babel/plugin-transform-modules-commonjs": "7.24.1", | ||
"@babel/plugin-transform-react-jsx": "7.23.4", | ||
"@babel/preset-react": "7.24.1", | ||
"@babel/preset-typescript": "7.24.1", | ||
"@commitlint/cli": "^19.0.3", | ||
"@commitlint/config-conventional": "^19.0.3", | ||
"@sinonjs/fake-timers": "10.3.0", | ||
"@swc/core": "1.3.40", | ||
"@types/babel__code-frame": "7.0.6", | ||
"@types/babel__core": "7.20.5", | ||
"@types/bluebird": "3.5.38", | ||
"@types/browserify": "12.0.40", | ||
"@types/chai": "4.3.4", | ||
"@types/chai-as-promised": "7.1.5", | ||
"@types/debug": "4.1.12", | ||
"@types/fs-extra": "11.0.4", | ||
"@types/lodash": "4.14.191", | ||
"@types/node": "18.19.3", | ||
"@types/proxyquire": "1.3.28", | ||
"@types/sharp": "0.31.1", | ||
"@types/sinon": "17.0.1", | ||
"@types/sinonjs__fake-timers": "8.1.2", | ||
"@types/urijs": "1.19.25", | ||
"@types/url-join": "4.0.3", | ||
"@typescript-eslint/eslint-plugin": "6.12.0", | ||
"@typescript-eslint/parser": "6.12.0", | ||
"aliasify": "1.9.0", | ||
"app-module-path": "2.2.0", | ||
"browserify": "13.3.0", | ||
"chai": "4.2.0", | ||
"chai-as-promised": "7.1.1", | ||
"concurrently": "8.2.2", | ||
"copyfiles": "2.4.1", | ||
"doctoc": "2.2.0", | ||
"esbuild": "0.18.20", | ||
"eslint": "8.25.0", | ||
"eslint-config-gemini-testing": "2.8.0", | ||
"eslint-config-prettier": "8.7.0", | ||
"husky": "0.11.4", | ||
"jsdom": "^24.0.0", | ||
"jsdom-global": "3.0.2", | ||
"onchange": "7.1.0", | ||
"pirates": "4.0.6", | ||
"prettier": "2.8.4", | ||
"proxyquire": "1.8.0", | ||
"rimraf": "4.1.2", | ||
"sinon": "17.0.1", | ||
"sinon-chai": "3.7.0", | ||
"standard-version": "9.5.0", | ||
"ts-node": "10.9.1", | ||
"type-fest": "3.11.1", | ||
"typescript": "5.3.2", | ||
"uglifyify": "3.0.4" | ||
}, | ||
"peerDependencies": { | ||
"ts-node": ">=10.5.0", | ||
"@swc/core": ">=1.3.96" | ||
}, | ||
"peerDependenciesMeta": { | ||
"ts-node": { | ||
"optional": true | ||
}, | ||
"@swc/core": { | ||
"optional": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Config } from "./config"; | ||
import { AsyncEmitter, InterceptedEvent, Events, InterceptHandler, Interceptor } from "./events"; | ||
import Errors from "./errors"; | ||
import { ConfigInput } from "./config/types"; | ||
export declare abstract class BaseTestplane extends AsyncEmitter { | ||
protected _interceptors: Interceptor[]; | ||
protected _config: Config; | ||
static create<T extends BaseTestplane>(this: new (config?: string | ConfigInput) => T, config?: string | ConfigInput): T; | ||
protected constructor(config?: string | ConfigInput); | ||
protected _init(): Promise<void>; | ||
get config(): Config; | ||
get events(): Events; | ||
get errors(): typeof Errors; | ||
intercept(event: InterceptedEvent, handler: InterceptHandler): this; | ||
abstract isWorker(): boolean; | ||
protected _setLogLevel(): void; | ||
protected _loadPlugins(): void; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export = BasicPool; | ||
declare class BasicPool extends Pool { | ||
static create(config: any, emitter: any): import("./basic-pool"); | ||
constructor(config: any, emitter: any); | ||
_config: any; | ||
_emitter: any; | ||
log: debug.Debugger; | ||
_activeSessions: {}; | ||
getBrowser(id: any, opts?: {}): Promise<import("../browser/browser")>; | ||
freeBrowser(browser: any): Promise<void>; | ||
_emit(event: any, browser: any): any; | ||
_cancelled: boolean | undefined; | ||
} | ||
import Pool = require("./pool"); | ||
import debug = require("debug"); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export = CachingPool; | ||
declare class CachingPool extends Pool { | ||
/** | ||
* @constructor | ||
* @extends BasicPool | ||
* @param {BasicPool} underlyingPool | ||
*/ | ||
constructor(underlyingPool: BasicPool, config: any); | ||
log: debug.Debugger; | ||
underlyingPool: BasicPool; | ||
_caches: {}; | ||
_config: any; | ||
_getCacheFor(id: any, version: any): any; | ||
getBrowser(id: any, opts?: {}): any; | ||
_initPool(browserId: any, version: any): void; | ||
/** | ||
* Free browser | ||
* @param {Browser} browser session instance | ||
* @param {Object} [options] - advanced options | ||
* @param {Boolean} [options.force] - if `true` than browser should | ||
* not be cached | ||
* @returns {Promise<undefined>} | ||
*/ | ||
freeBrowser(browser: Browser, options?: { | ||
force?: boolean | undefined; | ||
} | undefined): Promise<undefined>; | ||
} | ||
import Pool = require("./pool"); | ||
import debug = require("debug"); | ||
import Promise = require("bluebird"); |
Oops, something went wrong.