Migrate test framework from tape to vitest#2
Merged
moufmouf merged 9 commits intocopilot/convert-js-to-typescriptfrom Dec 10, 2025
Merged
Migrate test framework from tape to vitest#2moufmouf merged 9 commits intocopilot/convert-js-to-typescriptfrom
moufmouf merged 9 commits intocopilot/convert-js-to-typescriptfrom
Conversation
Co-authored-by: moufmouf <1290952+moufmouf@users.noreply.github.com>
Co-authored-by: moufmouf <1290952+moufmouf@users.noreply.github.com>
Co-authored-by: moufmouf <1290952+moufmouf@users.noreply.github.com>
Co-authored-by: moufmouf <1290952+moufmouf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Migrate test framework from tape to vitest
Migrate test framework from tape to vitest
Dec 10, 2025
Collaborator
|
@copilot Please migrate |
Co-authored-by: moufmouf <1290952+moufmouf@users.noreply.github.com>
Author
Done! Migrated test/multistream.js to TypeScript in commit 86958f2. The file now uses:
All 43 tests passing. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update
[ ] Bug fix
[X] New feature
[ ] Other, please explain:
What changes did you make? (Give an overview)
Migrated test framework from tape to vitest, leveraging vitest's native TypeScript support to run tests without pre-compilation.
Key Changes:
tape,tap-spec,@types/tapewithvitest,@vitest/browser,happy-dom, and addedviteas a dev dependencyt.equal,t.ok,t.deepEqual) with vitestexpect()t.plan(),t.end(),t.on('end'))afterEachcleanup hooks for proper resource managementbuildscript to compile only source code; removedtest/tsconfig.jsonvitest.config.tswith happy-dom environment and 20s timeouts for WebRTC testsTest Files:
.tsextension with proper TypeScript type annotations!process.browserchecks and skip in Node.js environmentAll 43 tests passing with no security vulnerabilities.
Which issue (if any) does this pull request address?
Migration request to modernize test infrastructure.
Is there anything you'd like reviewers to focus on?
!process.browsercheck)Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.