mocha-remote-common
Advanced tools
Comparing version 1.1.1 to 1.4.0
@@ -6,2 +6,4 @@ export declare type CustomContext = Record<string, unknown>; | ||
context?: CustomContext; | ||
timeout?: number; | ||
slow?: number; | ||
}; | ||
@@ -8,0 +10,0 @@ export declare type ErrorMessage = { |
{ | ||
"name": "mocha-remote-common", | ||
"version": "1.1.1", | ||
"version": "1.4.0", | ||
"description": "All common code and types shared between the Mocha Remote server and client", | ||
@@ -39,3 +39,3 @@ "scripts": { | ||
}, | ||
"gitHead": "221a798ad1ac757e617113dd9935c5b2d67f2190" | ||
"gitHead": "2f22cb48573baa3b54366a9df3fe7a335c4c2c6e" | ||
} |
@@ -81,2 +81,6 @@ <p align="center"> | ||
be closed [default: "default"] | ||
-g, --grep Only run tests matching this string | ||
or regexp [string] | ||
-i, --invert Inverts --grep matches | ||
[boolean] [default: false] | ||
-w, --watch Keep the server running after a test | ||
@@ -86,7 +90,12 @@ has ended [boolean] [default: false] | ||
starting a run (<k=v,[k1=v1,..]>) | ||
[array] | ||
[array] [default: []] | ||
-R, --reporter Specify reporter to use | ||
[default: "spec"] | ||
-O, --reporter-option, Reporter-specific options | ||
--reporter-options (<k=v,[k1=v1,..]>) [array] | ||
--reporter-options (<k=v,[k1=v1,..]>) | ||
[array] [default: []] | ||
-s, --silent Print less to stdout | ||
[boolean] [default: false] | ||
-e, --exit-on-error Exit immediately if an error occurs | ||
[boolean] [default: false] | ||
-v, --version Show version number & exit [boolean] | ||
@@ -183,2 +192,6 @@ -h, --help Show help [boolean] | ||
### Exit on error | ||
If an error occurs client-side, while loading tests, you might want to ensure your CI job fails instead of simply reporting "0 passing". To get this behavior, run with `--exit-on-error` (or `MOCHA_REMOTE_EXIT_ON_ERROR=true`). | ||
## Alternatively: Installing the server (for a programatic API) | ||
@@ -185,0 +198,0 @@ |
@@ -6,3 +6,5 @@ export type CustomContext = Record<string, unknown>; | ||
invert?: boolean; | ||
context?: CustomContext | ||
context?: CustomContext; | ||
timeout?: number; | ||
slow?: number; | ||
}; | ||
@@ -9,0 +11,0 @@ |
15638
84
241