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
When your tests import a class with 33 or more letters in its name (e.g., ThisIsAClassWith33LettersInItsName from a subdirectory of your project, tap-out detects it as an error output end token instead of a truncated class name and exits with error code 1.
To reproduce
Run the following example, which simulates the scenario described above:
I’m going to prepare a pull request but since this package is currently not being maintained, you might just want to implement the one-line fix yourself in your own fork:
I discovered this bug while using tap-nyc, which uses tap-out as a dependency. If you pipe your coverage results from the nyc or c8 code coverage tools and a class in your projects satisfies the requirements, your process will exit with an error.
The text was updated successfully, but these errors were encountered:
Summary
When your tests import a class with 33 or more letters in its name (e.g.,
ThisIsAClassWith33LettersInItsName
from a subdirectory of your project, tap-out detects it as an error output end token instead of a truncated class name and exits with error code 1.To reproduce
Run the following example, which simulates the scenario described above:
What should happen
It should be parsed properly as a comment and you should see the following output:
What actually happens
It gets detected as an error output end token and, in this case, the above program crashes with the following error:
Why it happens
The culprit is the conditional that detects the error output end token:
The fix
I’m going to prepare a pull request but since this package is currently not being maintained, you might just want to implement the one-line fix yourself in your own fork:
Background
I discovered this bug while using
tap-nyc
, which usestap-out
as a dependency. If you pipe your coverage results from thenyc
orc8
code coverage tools and a class in your projects satisfies the requirements, your process will exit with an error.The text was updated successfully, but these errors were encountered: