We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a03529d commit 486b96fCopy full SHA for 486b96f
lib/internal/test_runner/tap_parser.js
@@ -549,7 +549,18 @@ class TapParser extends Transform {
549
case TokenKind.TAP:
550
return this.#Version();
551
case TokenKind.NUMERIC:
552
- return this.#Plan();
+ // Check for "Bail out!" literal (case insensitive)
553
+ if (
554
+ RegExpPrototypeExec(/^Bail\s+out!/i, this.#currentChunkAsString)
555
+ ) {
556
+ return this.#Bailout();
557
+ } else if (this.#isYAMLBlock) {
558
+ return this.#YAMLBlock();
559
+ }
560
+ // Read token because error needs the last token details
561
+ this.#next(false);
562
+ this.#error('Expected a valid token');
563
+ break;
564
case TokenKind.TAP_TEST_OK:
565
case TokenKind.TAP_TEST_NOTOK:
566
return this.#TestPoint();
0 commit comments