-
Notifications
You must be signed in to change notification settings - Fork 5
doc: add windows generated project mock test workaround #374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds Windows-specific documentation to help users work around a known issue with mock tests in generated projects. The workaround involves manually installing the native ckb-debugger binary and disabling the WASM debugger until an upstream fix is applied.
Changes:
- Added comprehensive Windows user instructions for setting up
ckb-debuggermanually - Included step-by-step installation guide with PATH configuration
- Documented how to disable WASM debugger in mock test files
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ``` | ||
| - The `-c` option is optional, if not provided, the contract name defaults to `hello-world`. | ||
|
|
||
| **Note for Windows Users:** |
Copilot
AI
Jan 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent capitalization: This line uses "Windows Users" (capital U) while line 58 of the same file uses "Windows users" (lowercase u). For consistency with the existing note, this should be "Windows users".
| - Comment out or delete the `verifier.setWasmDebuggerEnabled(true)` line: | ||
| ```typescript | ||
| // When using native ckb-debugger, comment out or delete the following line: |
Copilot
AI
Jan 23, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment in the code example is slightly inconsistent with the actual template code. The template files at lines 32-33 of both .mock.test.ts.template and .mock.test.js.template show the comment "if you are using the native ckb-debugger, you can delete the following line." However, this documentation says "When using native ckb-debugger, comment out or delete the following line". Consider aligning the wording more closely with the template, or updating the templates to match this documentation.
| - Comment out or delete the `verifier.setWasmDebuggerEnabled(true)` line: | |
| ```typescript | |
| // When using native ckb-debugger, comment out or delete the following line: | |
| - Delete the `verifier.setWasmDebuggerEnabled(true)` line: | |
| ```typescript | |
| // if you are using the native ckb-debugger, you can delete the following line: |
No description provided.