-
Notifications
You must be signed in to change notification settings - Fork 63
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
454 changed files
with
11,041 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,5 @@ | ||
.DS_store | ||
.DS_Store | ||
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,131 @@ | ||
{ | ||
"name": "hermione", | ||
"version": "8.0.0-beta.3", | ||
"description": "Tests framework based on mocha and wdio", | ||
"main": "build/src/index.js", | ||
"files": [ | ||
"build" | ||
], | ||
"scripts": { | ||
"build": "tsc && npm run copy-static", | ||
"copy-static": "copyfiles 'src/browser/client-scripts/*' 'typings/*' build", | ||
"check-types": "tsc --project tsconfig.spec.json", | ||
"clean": "rimraf build/ *.tsbuildinfo", | ||
"coverage": "nyc --reporter=text npm run test-unit", | ||
"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 README.md", | ||
"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 && tsc --watch" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/gemini-testing/hermione.git" | ||
}, | ||
"engines": { | ||
"node": ">= 18.0.0" | ||
}, | ||
"keywords": [ | ||
"hermione", | ||
"webdriverio", | ||
"mocha", | ||
"test" | ||
], | ||
"bin": { | ||
"hermione": "./bin/hermione" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@gemini-testing/commander": "2.15.3", | ||
"@types/chalk": "^2.2.0", | ||
"@types/mocha": "^10.0.1", | ||
"@wdio/globals": "^8.10.7", | ||
"@wdio/types": "^8.10.4", | ||
"@wdio/utils": "^7.26.0", | ||
"aliasify": "^1.9.0", | ||
"bluebird": "^3.5.1", | ||
"browserify": "^13.3.0", | ||
"chalk": "^2.4.2", | ||
"clear-require": "^1.0.1", | ||
"date-fns": "^2.29.3", | ||
"debug": "^2.6.9", | ||
"devtools": "8.21.0", | ||
"expect-webdriverio": "^3.5.3", | ||
"fastq": "^1.13.0", | ||
"fs-extra": "^5.0.0", | ||
"gemini-configparser": "^1.3.0", | ||
"glob-extra": "^5.0.2", | ||
"inherit": "^2.2.2", | ||
"lodash": "^4.17.21", | ||
"looks-same": "^9.0.0", | ||
"micromatch": "^4.0.5", | ||
"mocha": "^10.2.0", | ||
"plugins-loader": "^1.2.0", | ||
"png-validator": "1.1.0", | ||
"sharp": "~0.30.7", | ||
"sizzle": "^2.3.6", | ||
"strip-ansi": "^6.0.1", | ||
"temp": "^0.8.3", | ||
"uglifyify": "^3.0.4", | ||
"urijs": "^1.19.11", | ||
"url-join": "^4.0.1", | ||
"webdriverio": "8.21.0", | ||
"worker-farm": "^1.7.0", | ||
"yallist": "^3.1.1" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.1.2", | ||
"@commitlint/config-conventional": "^17.1.0", | ||
"@sinonjs/fake-timers": "^10.3.0", | ||
"@swc/core": "^1.3.40", | ||
"@types/bluebird": "^3.5.38", | ||
"@types/chai": "^4.3.4", | ||
"@types/chai-as-promised": "^7.1.5", | ||
"@types/lodash": "^4.14.191", | ||
"@types/node": "^18.19.3", | ||
"@types/proxyquire": "^1.3.28", | ||
"@types/sharp": "^0.31.1", | ||
"@types/sinon": "^4.3.3", | ||
"@types/sinonjs__fake-timers": "^8.1.2", | ||
"@typescript-eslint/eslint-plugin": "^6.12.0", | ||
"@typescript-eslint/parser": "^6.12.0", | ||
"app-module-path": "^2.2.0", | ||
"chai": "^4.1.1", | ||
"chai-as-promised": "^7.1.1", | ||
"copyfiles": "^2.4.1", | ||
"doctoc": "^2.2.0", | ||
"escape-string-regexp": "1.0.5", | ||
"eslint": "^8.25.0", | ||
"eslint-config-gemini-testing": "^2.8.0", | ||
"eslint-config-prettier": "^8.7.0", | ||
"husky": "^0.11.4", | ||
"jsdom": "^16.6.0", | ||
"jsdom-global": "^3.0.2", | ||
"nyc": "^15.1.0", | ||
"onchange": "^7.1.0", | ||
"prettier": "^2.8.4", | ||
"proxyquire": "^1.7.3", | ||
"rimraf": "^4.1.2", | ||
"sinon": "^4.4.2", | ||
"sinon-chai": "^2.12.0", | ||
"standard-version": "^9.5.0", | ||
"ts-node": "^10.9.1", | ||
"type-fest": "^3.10.0", | ||
"typescript": "^5.3.2" | ||
}, | ||
"peerDependencies": { | ||
"ts-node": ">=10.5.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"ts-node": { | ||
"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 BaseHermione extends AsyncEmitter { | ||
protected _interceptors: Interceptor[]; | ||
protected _config: Config; | ||
static create<T extends BaseHermione>(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,14 @@ | ||
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: any; | ||
_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"); |
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,29 @@ | ||
export = CachingPool; | ||
declare class CachingPool extends Pool { | ||
/** | ||
* @constructor | ||
* @extends BasicPool | ||
* @param {BasicPool} underlyingPool | ||
*/ | ||
constructor(underlyingPool: BasicPool, config: any); | ||
log: any; | ||
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 Promise = require("bluebird"); |
Oops, something went wrong.