@japa/runner 2.4.0 → 2.5.0

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/index.js CHANGED
@@ -196,6 +196,7 @@ Examples:
196
196
  */
197
197
  function configure(options) {
198
198
  const defaultOptions = {
199
+ cliArgs: {},
199
200
  cwd: process.cwd(),
200
201
  files: [],
201
202
  suites: [],
@@ -238,6 +239,7 @@ function processCliArgs(argv) {
238
239
  });
239
240
  const config = {
240
241
  filters: {},
242
+ cliArgs: parsed,
241
243
  };
242
244
  processAsString(parsed, 'tags', (tags) => (config.filters.tags = tags));
243
245
  processAsString(parsed, 'ignoreTags', (tags) => {
@@ -34,6 +34,7 @@ export type RunnerHooks = {
34
34
  * Base configuration options
35
35
  */
36
36
  export type BaseConfig = {
37
+ cliArgs?: Record<string, any>;
37
38
  cwd?: string;
38
39
  timeout?: number;
39
40
  plugins?: PluginFn[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@japa/runner",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "Runner for Japa testing framework",
5
5
  "main": "build/index.js",
6
6
  "files": [
@@ -36,7 +36,7 @@
36
36
  "devDependencies": {
37
37
  "@adonisjs/mrm-preset": "^5.0.3",
38
38
  "@adonisjs/require-ts": "^2.0.13",
39
- "@types/node": "^18.11.19",
39
+ "@types/node": "^18.14.0",
40
40
  "commitizen": "^4.3.0",
41
41
  "cz-conventional-changelog": "^3.3.0",
42
42
  "del-cli": "^5.0.0",