You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,15 @@ borp --coverage
18
18
19
19
# with check coverage active
20
20
borp --coverage --check-coverage --lines 95
21
+
22
+
# with a node_modules located reporter
23
+
borp --reporter foo
24
+
25
+
# with a node_modules located reporter writing to stderr
26
+
borp --reporter foo:stderr
27
+
28
+
# with a local custom reporter
29
+
borp --reporter ./lib/some-reporter.mjs
21
30
```
22
31
23
32
Borp will automatically run all tests files matching `*.test.{js|ts}`.
@@ -98,7 +107,7 @@ Note the use of `incremental: true`, which speed up compilation massively.
98
107
*`--ignore` or `-i`, ignore a glob pattern, and not look for tests there
99
108
*`--expose-gc`, exposes the gc() function to tests
100
109
*`--pattern` or `-p`, run tests matching the given glob pattern
101
-
*`--reporter` or `-r`, set up a reporter, use a colon to set a file destination. Default: `spec`.
110
+
*`--reporter` or `-r`, set up a reporter, use a colon to set a file destination. Reporter may either be a module name resolvable by standard `node_modules` resolution, or a path to a script relative to the process working directory (must be an ESM script). Default: `spec`.
102
111
*`--no-typescript` or `-T`, disable automatic TypeScript compilation if `tsconfig.json` is found.
103
112
*`--post-compile` or `-P`, the path to a file that will be executed after each typescript compilation.
104
113
*`--check-coverage`, enables c8 check coverage; default is false
0 commit comments