| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -727,25 +727,26 @@ changes: | |||
| 727 | 727 | **Default:** `false`. | |
| 728 | 728 | * `files`: {Array} An array containing the list of files to run. | |
| 729 | 729 | **Default** matching files from [test runner execution model][]. | |
| 730 | - * `setup` {Function} A function that accepts the `TestsStream` instance | ||
| 731 | - and can be used to setup listeners before any tests are run. | ||
| 732 | - **Default:** `undefined`. | ||
| 733 | - * `signal` {AbortSignal} Allows aborting an in-progress test execution. | ||
| 734 | - * `timeout` {number} A number of milliseconds the test execution will | ||
| 735 | - fail after. | ||
| 736 | - If unspecified, subtests inherit this value from their parent. | ||
| 737 | - **Default:** `Infinity`. | ||
| 738 | 730 | * `inspectPort` {number|Function} Sets inspector port of test child process. | |
| 739 | 731 | This can be a number, or a function that takes no arguments and returns a | |
| 740 | 732 | number. If a nullish value is provided, each process gets its own port, | |
| 741 | 733 | incremented from the primary's `process.debugPort`. | |
| 742 | 734 | **Default:** `undefined`. | |
| 735 | + * `setup` {Function} A function that accepts the `TestsStream` instance | ||
| 736 | + and can be used to setup listeners before any tests are run. | ||
| 737 | + **Default:** `undefined`. | ||
| 738 | + * `signal` {AbortSignal} Allows aborting an in-progress test execution. | ||
| 743 | 739 | * `testNamePatterns` {string|RegExp|Array} A String, RegExp or a RegExp Array, | |
| 744 | 740 | that can be used to only run tests whose name matches the provided pattern. | |
| 745 | 741 | Test name patterns are interpreted as JavaScript regular expressions. | |
| 746 | 742 | For each test that is executed, any corresponding test hooks, such as | |
| 747 | 743 | `beforeEach()`, are also run. | |
| 748 | 744 | **Default:** `undefined`. | |
| 745 | + * `timeout` {number} A number of milliseconds the test execution will | ||
| 746 | + fail after. | ||
| 747 | + If unspecified, subtests inherit this value from their parent. | ||
| 748 | + **Default:** `Infinity`. | ||
| 749 | + * `watch` {boolean} Whether to run in watch mode or not. **Default:** `false`. | ||
| 749 | 750 | * Returns: {TestsStream} | |
| 750 | 751 | ||
| 751 | 752 | ```mjs | |
| Back | FazBrowse Home | New Git URL |
0 commit comments