@japa/runner 3.0.0-2 → 3.0.0-3

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.
Files changed (66) hide show
  1. package/build/factories/main.d.ts +3 -1
  2. package/build/factories/main.js +11 -0
  3. package/build/factories/runner.d.ts +18 -1
  4. package/build/factories/runner.js +45 -0
  5. package/build/index.d.ts +22 -1
  6. package/build/index.js +95 -0
  7. package/build/modules/core/main.d.ts +34 -1
  8. package/build/modules/core/main.js +53 -0
  9. package/build/modules/core/reporters/base.d.ts +21 -1
  10. package/build/modules/core/reporters/base.js +47 -0
  11. package/build/modules/core/types.d.ts +0 -1
  12. package/build/modules/core/types.js +8 -0
  13. package/build/src/cli_parser.d.ts +9 -1
  14. package/build/src/cli_parser.js +25 -0
  15. package/build/src/config_manager.d.ts +11 -1
  16. package/build/src/config_manager.js +47 -0
  17. package/build/src/create_test.d.ts +6 -1
  18. package/build/src/create_test.js +20 -0
  19. package/build/src/debug.d.ts +0 -1
  20. package/build/src/debug.js +8 -0
  21. package/build/src/exceptions_manager.d.ts +13 -1
  22. package/build/src/exceptions_manager.js +27 -0
  23. package/build/src/files_manager.d.ts +12 -1
  24. package/build/src/files_manager.js +24 -0
  25. package/build/src/helpers.d.ts +0 -1
  26. package/build/src/helpers.js +8 -0
  27. package/build/src/hooks.d.ts +12 -1
  28. package/build/src/hooks.js +20 -0
  29. package/build/src/planner.d.ts +8 -1
  30. package/build/src/planner.js +31 -0
  31. package/build/src/plugins/retry.d.ts +13 -1
  32. package/build/src/plugins/retry.js +24 -0
  33. package/build/src/reporters/dot.d.ts +9 -1
  34. package/build/src/reporters/dot.js +17 -0
  35. package/build/src/reporters/main.d.ts +9 -1
  36. package/build/src/reporters/main.js +17 -0
  37. package/build/src/reporters/ndjson.d.ts +4 -1
  38. package/build/src/reporters/ndjson.js +15 -0
  39. package/build/src/reporters/spec.d.ts +3 -1
  40. package/build/src/reporters/spec.js +51 -0
  41. package/build/src/types.d.ts +91 -1
  42. package/build/src/types.js +8 -0
  43. package/build/src/validator.d.ts +20 -1
  44. package/build/src/validator.js +39 -0
  45. package/package.json +8 -8
  46. package/build/factories/main.d.ts.map +0 -1
  47. package/build/factories/runner.d.ts.map +0 -1
  48. package/build/modules/core/main.d.ts.map +0 -1
  49. package/build/modules/core/reporters/base.d.ts.map +0 -1
  50. package/build/modules/core/types.d.ts.map +0 -1
  51. package/build/src/cli_parser.d.ts.map +0 -1
  52. package/build/src/config_manager.d.ts.map +0 -1
  53. package/build/src/create_test.d.ts.map +0 -1
  54. package/build/src/debug.d.ts.map +0 -1
  55. package/build/src/exceptions_manager.d.ts.map +0 -1
  56. package/build/src/files_manager.d.ts.map +0 -1
  57. package/build/src/helpers.d.ts.map +0 -1
  58. package/build/src/hooks.d.ts.map +0 -1
  59. package/build/src/planner.d.ts.map +0 -1
  60. package/build/src/plugins/retry.d.ts.map +0 -1
  61. package/build/src/reporters/dot.d.ts.map +0 -1
  62. package/build/src/reporters/main.d.ts.map +0 -1
  63. package/build/src/reporters/ndjson.d.ts.map +0 -1
  64. package/build/src/reporters/spec.d.ts.map +0 -1
  65. package/build/src/types.d.ts.map +0 -1
  66. package/build/src/validator.d.ts.map +0 -1
@@ -1,6 +1,20 @@
1
+ /*
2
+ * @japa/runner
3
+ *
4
+ * (c) Japa
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  import cliui from '../helpers.js';
2
10
  import { BaseReporter } from '../../modules/core/reporters/base.js';
11
+ /**
12
+ * Minimal reporter that prints each test as an icon.
13
+ */
3
14
  export class DotReporter extends BaseReporter {
15
+ /**
16
+ * When a test ended
17
+ */
4
18
  onTestEnd(payload) {
5
19
  let output = '';
6
20
  if (payload.isTodo) {
@@ -17,6 +31,9 @@ export class DotReporter extends BaseReporter {
17
31
  }
18
32
  process.stdout.write(`${output}`);
19
33
  }
34
+ /**
35
+ * When test runner ended
36
+ */
20
37
  async end() {
21
38
  console.log('');
22
39
  await this.printSummary(this.runner.getSummary());
@@ -1,5 +1,13 @@
1
1
  import type { BaseReporterOptions, NamedReporterContract } from '../types.js';
2
+ /**
3
+ * Create an instance of the spec reporter
4
+ */
2
5
  export declare const spec: (options?: BaseReporterOptions) => NamedReporterContract;
6
+ /**
7
+ * Create an instance of the dot reporter
8
+ */
3
9
  export declare const dot: (options?: BaseReporterOptions) => NamedReporterContract;
10
+ /**
11
+ * Create an instance of the ndjson reporter
12
+ */
4
13
  export declare const ndjson: (options?: BaseReporterOptions) => NamedReporterContract;
5
- //# sourceMappingURL=main.d.ts.map
@@ -1,18 +1,35 @@
1
+ /*
2
+ * @japa/runner
3
+ *
4
+ * (c) Japa
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  import { DotReporter } from './dot.js';
2
10
  import { SpecReporter } from './spec.js';
3
11
  import { NdJSONReporter } from './ndjson.js';
12
+ /**
13
+ * Create an instance of the spec reporter
14
+ */
4
15
  export const spec = (options) => {
5
16
  return {
6
17
  name: 'spec',
7
18
  handler: (...args) => new SpecReporter(options).boot(...args),
8
19
  };
9
20
  };
21
+ /**
22
+ * Create an instance of the dot reporter
23
+ */
10
24
  export const dot = (options) => {
11
25
  return {
12
26
  name: 'dot',
13
27
  handler: (...args) => new DotReporter(options).boot(...args),
14
28
  };
15
29
  };
30
+ /**
31
+ * Create an instance of the ndjson reporter
32
+ */
16
33
  export const ndjson = (options) => {
17
34
  return {
18
35
  name: 'ndjson',
@@ -1,5 +1,9 @@
1
1
  import { BaseReporter } from '../../modules/core/main.js';
2
2
  import type { TestEndNode, SuiteEndNode, GroupEndNode, SuiteStartNode, GroupStartNode } from '../../modules/core/types.js';
3
+ /**
4
+ * Prints tests progress as JSON. Each event is emitted
5
+ * independently
6
+ */
3
7
  export declare class NdJSONReporter extends BaseReporter {
4
8
  #private;
5
9
  protected onTestEnd(payload: TestEndNode): void;
@@ -9,4 +13,3 @@ export declare class NdJSONReporter extends BaseReporter {
9
13
  protected onSuiteEnd(payload: SuiteEndNode): void;
10
14
  protected end(): Promise<void>;
11
15
  }
12
- //# sourceMappingURL=ndjson.d.ts.map
@@ -1,6 +1,21 @@
1
+ /*
2
+ * @japa/runner
3
+ *
4
+ * (c) Japa
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  import { relative } from 'node:path';
2
10
  import { BaseReporter } from '../../modules/core/main.js';
11
+ /**
12
+ * Prints tests progress as JSON. Each event is emitted
13
+ * independently
14
+ */
3
15
  export class NdJSONReporter extends BaseReporter {
16
+ /**
17
+ * Returns the filename relative from the current working dir
18
+ */
4
19
  #getRelativeFilename(fileName) {
5
20
  return relative(process.cwd(), fileName);
6
21
  }
@@ -1,5 +1,8 @@
1
1
  import { BaseReporter } from '../../modules/core/main.js';
2
2
  import { GroupStartNode, TestEndNode } from '../../modules/core/types.js';
3
+ /**
4
+ * Pretty prints the tests on the console
5
+ */
3
6
  export declare class SpecReporter extends BaseReporter {
4
7
  #private;
5
8
  protected onTestStart(): void;
@@ -8,4 +11,3 @@ export declare class SpecReporter extends BaseReporter {
8
11
  protected onGroupEnd(): void;
9
12
  protected end(): Promise<void>;
10
13
  }
11
- //# sourceMappingURL=spec.d.ts.map
@@ -1,9 +1,27 @@
1
+ /*
2
+ * @japa/runner
3
+ *
4
+ * (c) Japa
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  import ms from 'ms';
2
10
  import { relative } from 'node:path';
3
11
  import cliui from '../helpers.js';
4
12
  import { BaseReporter } from '../../modules/core/main.js';
13
+ /**
14
+ * Pretty prints the tests on the console
15
+ */
5
16
  export class SpecReporter extends BaseReporter {
17
+ /**
18
+ * Tracking if the first event we get is for a test without any parent group
19
+ * We need this to decide the display style for tests without groups.
20
+ */
6
21
  #isFirstLoneTest = true;
22
+ /**
23
+ * Returns the icon for the test
24
+ */
7
25
  #getTestIcon(payload) {
8
26
  if (payload.isTodo) {
9
27
  return cliui.colors.cyan(cliui.icons.info);
@@ -21,6 +39,9 @@ export class SpecReporter extends BaseReporter {
21
39
  }
22
40
  return cliui.colors.green(cliui.icons.tick);
23
41
  }
42
+ /**
43
+ * Returns the test message
44
+ */
24
45
  #getTestMessage(payload) {
25
46
  const message = typeof payload.title === 'string' ? payload.title : payload.title.expanded;
26
47
  if (payload.isTodo) {
@@ -37,6 +58,9 @@ export class SpecReporter extends BaseReporter {
37
58
  }
38
59
  return cliui.colors.grey(message);
39
60
  }
61
+ /**
62
+ * Returns the subtext message for the test
63
+ */
40
64
  #getSubText(payload) {
41
65
  if (payload.isSkipped && payload.skipReason) {
42
66
  return cliui.colors.yellow(payload.skipReason);
@@ -55,9 +79,15 @@ export class SpecReporter extends BaseReporter {
55
79
  return cliui.colors.magenta(testErrorMessage.error.message);
56
80
  }
57
81
  }
82
+ /**
83
+ * Returns the filename relative from the current working dir
84
+ */
58
85
  #getRelativeFilename(fileName) {
59
86
  return relative(process.cwd(), fileName);
60
87
  }
88
+ /**
89
+ * Prints the test details
90
+ */
61
91
  #printTest(payload) {
62
92
  const icon = this.#getTestIcon(payload);
63
93
  const message = this.#getTestMessage(payload);
@@ -71,6 +101,9 @@ export class SpecReporter extends BaseReporter {
71
101
  subText = subText ? `\n${indentation} ${subText}` : '';
72
102
  console.log(`${indentation}${icon} ${prefix}${retries}${message} ${duration}${subText}`);
73
103
  }
104
+ /**
105
+ * Prints the group name
106
+ */
74
107
  #printGroup(payload) {
75
108
  const title = this.currentSuiteName !== 'default'
76
109
  ? `${this.currentSuiteName} / ${payload.title}`
@@ -81,6 +114,13 @@ export class SpecReporter extends BaseReporter {
81
114
  console.log(`\n${title}${suffix}`);
82
115
  }
83
116
  onTestStart() {
117
+ /**
118
+ * Display the filename when
119
+ *
120
+ * - The filename exists
121
+ * - The test is not under a group
122
+ * - Test is first in a sequence
123
+ */
84
124
  if (this.currentFileName && this.#isFirstLoneTest) {
85
125
  console.log(`\n${cliui.colors.dim(this.#getRelativeFilename(this.currentFileName))}`);
86
126
  }
@@ -90,10 +130,21 @@ export class SpecReporter extends BaseReporter {
90
130
  this.#printTest(payload);
91
131
  }
92
132
  onGroupStart(payload) {
133
+ /**
134
+ * When a group starts, we mark the upcoming test as NOT a
135
+ * lone test
136
+ */
93
137
  this.#isFirstLoneTest = false;
94
138
  this.#printGroup(payload);
95
139
  }
96
140
  onGroupEnd() {
141
+ /**
142
+ * When the group ends we assume that the next test can
143
+ * be out of the group, hence a lone test.
144
+ *
145
+ * If this assumption is false, then the `onGroupStart` method
146
+ * will toggle the boolean
147
+ */
97
148
  this.#isFirstLoneTest = true;
98
149
  }
99
150
  async end() {
@@ -3,14 +3,26 @@ import type { HookHandler } from '@poppinss/hooks/types';
3
3
  import type { Emitter, Refiner, Runner, Suite } from '../modules/core/main.js';
4
4
  import type { FilteringOptions, NamedReporterContract } from '../modules/core/types.js';
5
5
  export * from '../modules/core/types.js';
6
+ /**
7
+ * Global setup hook
8
+ */
6
9
  export type SetupHookState = [[runner: Runner], [error: Error | null, runner: Runner]];
7
10
  export type SetupHookHandler = HookHandler<SetupHookState[0], SetupHookState[1]>;
11
+ /**
12
+ * Global teardown hook
13
+ */
8
14
  export type TeardownHookState = [[runner: Runner], [error: Error | null, runner: Runner]];
9
15
  export type TeardownHookHandler = HookHandler<TeardownHookState[0], TeardownHookState[1]>;
16
+ /**
17
+ * Global set of available hooks
18
+ */
10
19
  export type HooksEvents = {
11
20
  setup: SetupHookState;
12
21
  teardown: TeardownHookState;
13
22
  };
23
+ /**
24
+ * Parsed command-line arguments
25
+ */
14
26
  export type CLIArgs = {
15
27
  _?: string[];
16
28
  tags?: string | string[];
@@ -24,44 +36,122 @@ export type CLIArgs = {
24
36
  help?: boolean;
25
37
  matchAll?: boolean;
26
38
  } & Record<string, string | string[] | boolean>;
39
+ /**
40
+ * Set of filters you can apply to run only specific tests
41
+ */
27
42
  export type Filters = FilteringOptions & {
28
43
  files?: string[];
29
44
  suites?: string[];
30
45
  };
46
+ /**
47
+ * Plugin function receives an instance of the runner,
48
+ * emitter, config and the hooks
49
+ */
31
50
  export type PluginFn = (japa: {
32
51
  config: Required<Config>;
33
52
  cliArgs: CLIArgs;
34
53
  runner: Runner;
35
54
  emitter: Emitter;
36
55
  }) => void | Promise<void>;
56
+ /**
57
+ * Base configuration options
58
+ */
37
59
  export type BaseConfig = {
60
+ /**
61
+ * Current working directory. It is required to search for
62
+ * the test files
63
+ */
38
64
  cwd?: string;
65
+ /**
66
+ * The timeout to apply on all the tests, unless overwritten explicitly
67
+ */
39
68
  timeout?: number;
69
+ /**
70
+ * The retries to apply on all the tests, unless overwritten explicitly
71
+ */
40
72
  retries?: number;
73
+ /**
74
+ * Test filters to apply
75
+ */
41
76
  filters?: Filters;
77
+ /**
78
+ * A hook to configure suites. The callback will be called for each
79
+ * suite before it gets executed.
80
+ */
42
81
  configureSuite?: (suite: Suite) => void;
82
+ /**
83
+ * A collection of registered reporters. Reporters are not activated by
84
+ * default. Either you have to activate them using the commandline,
85
+ * or using the `activated` property.
86
+ */
43
87
  reporters?: {
44
88
  activated: string[];
45
89
  list: NamedReporterContract[];
46
90
  };
91
+ /**
92
+ * A collection of registered plugins
93
+ */
47
94
  plugins?: PluginFn[];
95
+ /**
96
+ * A custom implementation to import test files.
97
+ */
48
98
  importer?: (filePath: URL) => void | Promise<void>;
99
+ /**
100
+ * Overwrite tests refiner. Check documentation for refiner
101
+ * usage
102
+ */
49
103
  refiner?: Refiner;
104
+ /**
105
+ * Enable/disable force exiting.
106
+ */
50
107
  forceExit?: boolean;
108
+ /**
109
+ * Global hooks to execute before importing
110
+ * the test files
111
+ */
51
112
  setup?: SetupHookHandler[];
113
+ /**
114
+ * Global hooks to execute on teardown
115
+ */
52
116
  teardown?: TeardownHookHandler[];
53
117
  };
118
+ /**
119
+ * A collection of test files defined as a glob or a callback
120
+ * function that returns an array of URLs
121
+ */
54
122
  export type TestFiles = string | string[] | (() => URL[] | Promise<URL[]>);
123
+ /**
124
+ * A test suite to register tests under a named suite
125
+ */
55
126
  export type TestSuite = {
127
+ /**
128
+ * A unique name for the suite
129
+ */
56
130
  name: string;
131
+ /**
132
+ * Collection of files associated with the suite. Files should be
133
+ * defined as a glob or a callback function that returns an array of URLs
134
+ */
57
135
  files: TestFiles;
136
+ /**
137
+ * A callback functon to configure the suite. The callback is invoked only
138
+ * when the runner is going to run the tests for the given suite.
139
+ */
58
140
  configure?: (suite: Suite) => void;
141
+ /**
142
+ * The timeout to apply on all the tests in this suite, unless overwritten explicitly
143
+ */
59
144
  timeout?: number;
145
+ /**
146
+ * The retries to apply on all the tests in this suite, unless overwritten explicitly
147
+ */
60
148
  retries?: number;
61
149
  };
150
+ /**
151
+ * Configuration options
152
+ */
62
153
  export type Config = BaseConfig & ({
63
154
  files: TestFiles;
64
155
  } | {
65
156
  suites: TestSuite[];
66
157
  });
67
- //# sourceMappingURL=types.d.ts.map
@@ -1 +1,9 @@
1
+ /*
2
+ * @japa/runner
3
+ *
4
+ * (c) Japa
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  export * from '../modules/core/types.js';
@@ -1,11 +1,30 @@
1
1
  import { Config } from './types.js';
2
+ /**
3
+ * Validator encapsulates the validations to perform before running
4
+ * the tests
5
+ */
2
6
  declare class Validator {
7
+ /**
8
+ * Ensures the japa is configured. Otherwise raises an exception
9
+ */
3
10
  ensureIsConfigured(config: Required<Config> | undefined): void;
11
+ /**
12
+ * Ensures the japa is in planning phase
13
+ */
4
14
  ensureIsInPlanningPhase(phase: 'idle' | 'planning' | 'executing'): void;
15
+ /**
16
+ * Ensures the suites filter uses a subset of the user configured suites.
17
+ */
5
18
  validateSuitesFilter(config: Required<Config>): void;
19
+ /**
20
+ * Ensure there are unique suites
21
+ */
6
22
  validateSuitesForUniqueness(config: Required<Config>): void;
23
+ /**
24
+ * Ensure the activated reporters are in the list of defined
25
+ * reporters
26
+ */
7
27
  validateActivatedReporters(config: Required<Config>): void;
8
28
  }
9
29
  declare const _default: Validator;
10
30
  export default _default;
11
- //# sourceMappingURL=validator.d.ts.map
@@ -1,27 +1,62 @@
1
+ /*
2
+ * @japa/runner
3
+ *
4
+ * (c) Japa
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
9
+ /**
10
+ * Validator encapsulates the validations to perform before running
11
+ * the tests
12
+ */
1
13
  class Validator {
14
+ /**
15
+ * Ensures the japa is configured. Otherwise raises an exception
16
+ */
2
17
  ensureIsConfigured(config) {
3
18
  if (!config) {
4
19
  throw new Error(`Cannot run tests. Make sure to call "configure" method before the "run" method`);
5
20
  }
6
21
  }
22
+ /**
23
+ * Ensures the japa is in planning phase
24
+ */
7
25
  ensureIsInPlanningPhase(phase) {
8
26
  if (phase !== 'planning') {
9
27
  throw new Error(`Cannot import japa test file directly. It must be imported by calling the "japa.run" method`);
10
28
  }
11
29
  }
30
+ /**
31
+ * Ensures the suites filter uses a subset of the user configured suites.
32
+ */
12
33
  validateSuitesFilter(config) {
34
+ /**
35
+ * Do not perform any validation if no filters are applied
36
+ * in the first place
37
+ */
13
38
  if (!config.filters.suites || !config.filters.suites.length) {
14
39
  return;
15
40
  }
41
+ /**
42
+ * Notify user they have applied the suites filter but forgot to define
43
+ * suites
44
+ */
16
45
  if (!('suites' in config) || !config.suites.length) {
17
46
  throw new Error(`Cannot apply suites filter. You have not configured any test suites`);
18
47
  }
19
48
  const suites = config.suites.map(({ name }) => name);
49
+ /**
50
+ * Find unknown suites and report the error
51
+ */
20
52
  const unknownSuites = config.filters.suites.filter((suite) => !suites.includes(suite));
21
53
  if (unknownSuites.length) {
22
54
  throw new Error(`Cannot apply suites filter. "${unknownSuites[0]}" suite is not configured`);
23
55
  }
24
56
  }
57
+ /**
58
+ * Ensure there are unique suites
59
+ */
25
60
  validateSuitesForUniqueness(config) {
26
61
  if (!('suites' in config)) {
27
62
  return;
@@ -35,6 +70,10 @@ class Validator {
35
70
  });
36
71
  suites.clear();
37
72
  }
73
+ /**
74
+ * Ensure the activated reporters are in the list of defined
75
+ * reporters
76
+ */
38
77
  validateActivatedReporters(config) {
39
78
  const reportersList = config.reporters.list.map(({ name }) => name);
40
79
  const unknownReporters = config.reporters.activated.filter((name) => !reportersList.includes(name));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@japa/runner",
3
- "version": "3.0.0-2",
3
+ "version": "3.0.0-3",
4
4
  "description": "Runner for Japa testing framework",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
@@ -44,10 +44,10 @@
44
44
  "author": "virk,japa",
45
45
  "license": "MIT",
46
46
  "devDependencies": {
47
- "@adonisjs/eslint-config": "^1.1.5",
48
- "@adonisjs/prettier-config": "^1.1.5",
47
+ "@adonisjs/eslint-config": "^1.1.7",
48
+ "@adonisjs/prettier-config": "^1.1.7",
49
49
  "@adonisjs/require-ts": "^2.0.13",
50
- "@adonisjs/tsconfig": "^1.1.5",
50
+ "@adonisjs/tsconfig": "^1.1.7",
51
51
  "@commitlint/cli": "^17.6.6",
52
52
  "@commitlint/config-conventional": "^17.6.6",
53
53
  "@swc/core": "^1.3.67",
@@ -55,13 +55,13 @@
55
55
  "@types/chai-subset": "^1.3.3",
56
56
  "@types/find-cache-dir": "^3.2.1",
57
57
  "@types/ms": "^0.7.31",
58
- "@types/node": "^20.3.2",
58
+ "@types/node": "^20.3.3",
59
59
  "c8": "^8.0.0",
60
60
  "chai": "^4.3.7",
61
61
  "chai-subset": "^1.6.0",
62
62
  "cross-env": "^7.0.3",
63
63
  "del-cli": "^5.0.0",
64
- "eslint": "^8.36.0",
64
+ "eslint": "^8.44.0",
65
65
  "github-label-sync": "^2.3.1",
66
66
  "glob": "^10.3.1",
67
67
  "husky": "^8.0.3",
@@ -72,11 +72,11 @@
72
72
  "typescript": "^5.1.6"
73
73
  },
74
74
  "dependencies": {
75
- "@japa/core": "^8.0.0-7",
75
+ "@japa/core": "^8.0.0-8",
76
76
  "@japa/errors-printer": "^3.0.0-4",
77
77
  "@poppinss/cliui": "^6.1.1-2",
78
78
  "@poppinss/hooks": "^7.1.1-3",
79
- "fast-glob": "^3.2.12",
79
+ "fast-glob": "^3.3.0",
80
80
  "find-cache-dir": "^4.0.0",
81
81
  "getopts": "^2.3.0",
82
82
  "ms": "^2.1.3",
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../factories/main.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAK3C,eAAO,MAAM,MAAM,qBAA4B,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../../factories/runner.ts"],"names":[],"mappings":"AAeA,OAAO,EAAW,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAGjD,OAAO,EAAS,KAAK,EAAU,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAOvE,qBAAa,aAAa;;IAmJxB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE;IAUzC,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE;IAQ1B,UAAU,CAAC,OAAO,EAAE,OAAO;IAQrB,GAAG;CAoCV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../modules/core/main.ts"],"names":[],"mappings":"AASA,OAAO,EACL,OAAO,EACP,OAAO,EACP,IAAI,IAAI,QAAQ,EAChB,KAAK,IAAI,SAAS,EAClB,KAAK,IAAI,SAAS,EAClB,MAAM,IAAI,UAAU,EACpB,WAAW,IAAI,eAAe,EAC/B,MAAM,YAAY,CAAA;AAGnB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAEtE,OAAO,QAAQ,YAAY,CAAC;IAC1B,UAAU,I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B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAO5C,8BAAsB,YAAY;;IAEhC,MAAM,CAAC,EAAE,MAAM,CAAA;IAKf,eAAe,CAAC,EAAE,MAAM,CAAA;IAKxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAKzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;gBAEb,OAAO,GAAE,mBAAwB;IAsG7C,SAAS,CAAC,WAAW,CAAC,CAAC,EAAE,aAAa,GAAG,IAAI;IAC7C,SAAS,CAAC,SAAS,CAAC,CAAC,EAAE,WAAW;IAElC,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,cAAc;IACxC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,YAAY;IAEpC,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,cAAc;IACxC,SAAS,CAAC,UAAU,CAAC,CAAC,EAAE,YAAY;cAEpB,KAAK,CAAC,CAAC,EAAE,eAAe;cACxB,GAAG,CAAC,CAAC,EAAE,aAAa;cAKpB,YAAY,CAAC,OAAO,EAAE,aAAa;IAqBnD,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;CAyCtC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../modules/core/types.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAA;AAEhC,MAAM,MAAM,mBAAmB,GAAG;IAChC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli_parser.d.ts","sourceRoot":"","sources":["../../src/cli_parser.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAsDzC,qBAAa,SAAS;IAIpB,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO;IAO9B,OAAO;CAGR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"config_manager.d.ts","sourceRoot":"","sources":["../../src/config_manager.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAW,MAAM,YAAY,CAAA;AA0B1D,qBAAa,aAAa;;gBAIZ,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAsF5C,OAAO,IAAI,QAAQ,CAAC,MAAM,CAAC;CAoD5B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create_test.d.ts","sourceRoot":"","sources":["../../src/create_test.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAe,MAAM,yBAAyB,CAAA;AAU3F,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE;IACP,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,mBAwBF;AAKD,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE;IACP,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,SAeF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../src/debug.ts"],"names":[],"mappings":";;AAUA,wBAAsC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"exceptions_manager.d.ts","sourceRoot":"","sources":["../../src/exceptions_manager.ts"],"names":[],"mappings":"AAeA,qBAAa,iBAAiB;;IAM5B,SAAS,EAAE,OAAO,CAAQ;IAW1B,OAAO;IAwBD,IAAI;CAmCX"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"files_manager.d.ts","sourceRoot":"","sources":["../../src/files_manager.ts"],"names":[],"mappings":";AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAY3C,qBAAa,YAAY;IAKjB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAiB7D,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,GAAG,EAAE;CAmB7C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAUA,wBAAsB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/hooks.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,EAAkD,MAAM,YAAY,CAAA;AAKxF,qBAAa,WAAW;;IAQtB,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;IAQxB,KAAK,CAAC,MAAM,EAAE,MAAM;IASpB,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM;CAWnD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"planner.d.ts","sourceRoot":"","sources":["../../src/planner.ts"],"names":[],"mappings":";AAWA,OAAO,KAAK,EAAE,MAAM,EAAa,SAAS,EAAE,MAAM,YAAY,CAAA;AAO9D,qBAAa,OAAO;;gBAIN,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC;IA6E9B,IAAI;;;;;;;;;;;CAWX"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../../src/plugins/retry.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAY3C,wBAAsB,cAAc,IAAI,OAAO,CAAC;IAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAUpE;AAKD,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,iBAGrD;AAKD,wBAAsB,UAAU,kBAE/B;AAKD,eAAO,MAAM,WAAW,EAAE,QAkBzB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dot.d.ts","sourceRoot":"","sources":["../../../src/reporters/dot.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AAKnE,qBAAa,WAAY,SAAQ,YAAY;IAI3C,SAAS,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW;cAkBxB,GAAG;CAIpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/reporters/main.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAK7E,eAAO,MAAM,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,mBAAmB,KAAK,qBAKrD,CAAA;AAKD,eAAO,MAAM,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,mBAAmB,KAAK,qBAKpD,CAAA;AAKD,eAAO,MAAM,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,mBAAmB,KAAK,qBAKvD,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ndjson.d.ts","sourceRoot":"","sources":["../../../src/reporters/ndjson.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAc,EACf,MAAM,6BAA6B,CAAA;AAMpC,qBAAa,cAAe,SAAQ,YAAY;;IAQ9C,SAAS,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAuB/C,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IASrD,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;IAQjD,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IASrD,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,YAAY,GAAG,IAAI;cASjC,GAAG;CAWpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"spec.d.ts","sourceRoot":"","sources":["../../../src/reporters/spec.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAKzE,qBAAa,YAAa,SAAQ,YAAY;;IA8H5C,SAAS,CAAC,WAAW,IAAI,IAAI;IAc7B,SAAS,CAAC,SAAS,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAI/C,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IASrD,SAAS,CAAC,UAAU,IAAI,IAAI;cAWZ,GAAG;CAIpB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,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