Migrate tests from Jest + jest-electron to Playwright (Chromium only)#26
Closed
Copilot wants to merge 5 commits into
Closed
Migrate tests from Jest + jest-electron to Playwright (Chromium only)#26Copilot wants to merge 5 commits into
Copilot wants to merge 5 commits into
Conversation
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Owner
|
@copilot ci 执行报错了处理一下。 另外把 lock 文件 git ignore |
Copilot
AI
changed the title
[WIP] Migrate tests from Jest to Playwright for Chromium
Migrate tests from Jest + jest-electron to Playwright (Chromium only)
Jan 24, 2026
Co-authored-by: hustcc <7856674+hustcc@users.noreply.github.com>
Contributor
Author
Fixed in commit a9d5bb1:
The ES module error was caused by using |
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.
Migration Plan: Jest + jest-electron → Playwright (Chromium only)
Related Issue: #23
Checklist:
@playwright/testas devDependencyjest,jest-electron, andbabel-jestfrom package.jsontestscript to use Playwrightdebugscript (Jest-specific)playwright.config.mjswith Chromium-only projecttests/directoryindex.spec.mjs- test exports (bind, clear, ver) and demo functionalityunbind.spec.mjs- test clear() and unbind() functionsissue-17.spec.mjs- test memory leak fix from issue 只调用 unbind 不调用 clear 的话存在内存泄漏 #17Decision: Running Chromium only to keep the setup lightweight and fast, while still providing browser-based DOM testing that was previously done with jest-electron.
Technical Approach:
dist/size-sensor.min.js) into Playwright pagespage.evaluate()Original prompt
This pull request was created from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.