@@ -11,7 +11,10 @@ Minimal dependencies, with full test suite.
1111Differences from the core implementation:
1212
1313- Doesn't hide its own stack frames.
14- - Requires ` --experimental-abortcontroller ` CLI flag to work on Node.js v14.x.
14+ - Some features require the use of ` --experimental-abortcontroller ` CLI flag to
15+ work on Node.js v14.x. It's recommended to pass
16+ ` NODE_OPTIONS='--experimental-abortcontroller --no-warnings' ` in your env if
17+ you are testing on v14.x.
1518
1619## Docs
1720
@@ -339,7 +342,7 @@ internally.
339342 - ` only ` {boolean} If truthy, and the test context is configured to run
340343 ` only ` tests, then this test will be run. Otherwise, the test is skipped.
341344 ** Default:** ` false ` .
342- * ` signal ` {AbortSignal} Allows aborting an in-progress test.
345+ - ` signal ` {AbortSignal} Allows aborting an in-progress test.
343346 - ` skip ` {boolean|string} If truthy, the test is skipped. If a string is
344347 provided, that string is displayed in the test results as the reason for
345348 skipping the test. ** Default:** ` false ` .
@@ -625,6 +628,11 @@ no-op.
625628
626629* [ ` AbortSignal ` ] [ ] Can be used to abort test subtasks when the test has been aborted.
627630
631+ > ** Warning**
632+ > On Node.js v14.x, this feature won't be available unless you pass the
633+ > ` --experimental-abortcontroller ` CLI flag or added an external global polyfill
634+ > for ` AbortController ` .
635+
628636``` js
629637test (' top level test' , async (t ) => {
630638 await fetch (' some/uri' , { signal: t .signal });
@@ -694,6 +702,12 @@ The name of the suite.
694702
695703* [ ` AbortSignal ` ] [ ] Can be used to abort test subtasks when the test has been aborted.
696704
705+ > ** Warning**
706+ > On Node.js v14.x, this feature won't be available unless you pass the
707+ > ` --experimental-abortcontroller ` CLI flag or added an external global polyfill
708+ > for ` AbortController ` .
709+
710+
697711[ `AbortSignal` ] : https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
698712[ TAP ] : https://testanything.org/
699713[ `SuiteContext` ] : #class-suitecontext
0 commit comments