eslint-plugin-expect-type icon indicating copy to clipboard operation
eslint-plugin-expect-type copied to clipboard

🛠 Tooling: twoslash tests hang for many seconds after completion

Open JoshuaKGoldberg opened this issue 1 year ago • 2 comments

Bug Report Checklist

  • [X] I have tried restarting my IDE and the issue persists.
  • [X] I have pulled the latest main branch of the repository.
  • [X] I have searched for related issues and found none that matched my issue.

Overview

$ time pnpm run test run

...


 ✓ src/rules/expect-error.test.ts (2) 915ms
 ✓ src/rules/expect-type-snapshot.test.ts (10) 971ms
 ✓ src/rules/expect-type.test.ts (19) 1011ms
 ✓ src/rules/twoslash.test.ts (20) 7050ms

 Test Files  4 passed (4)
      Tests  51 passed (51)
   Start at  08:50:38
   Duration  7.80s (transform 98ms, setup 22ms, collect 2.10s, tests 9.95s, environment 0ms, prepare 214ms)

pnpm run test run  18.59s user 1.34s system 241% cpu 8.253 total

18 seconds total run, ~7 seconds in expect-type. Huh.

Additional Info

💖

JoshuaKGoldberg avatar Nov 29 '24 13:11 JoshuaKGoldberg

@all-contributors please add @joshuakgoldberg for tool.

🤖 Beep boop! This comment was added automatically by all-contributors-auto-action. Not all contributions can be detected from Git & GitHub alone. Please comment any missing contribution types this bot missed. ...and of course, thank you for contributing! 💙

JoshuaKGoldberg avatar Nov 29 '24 14:11 JoshuaKGoldberg

@JoshuaKGoldberg

I've put up a pull request to add @joshuakgoldberg! :tada:

allcontributors[bot] avatar Nov 29 '24 14:11 allcontributors[bot]