Skip to content
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

Test case fails without code changes #2675

Open
gakkiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii opened this issue Apr 21, 2024 · 3 comments
Open

Test case fails without code changes #2675

gakkiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii opened this issue Apr 21, 2024 · 3 comments
Assignees

Comments

@gakkiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii

Expected Behavior:
Describe the expected outcome or behavior.
when i pull this project, then run test, call error like(No changes were made to the code):
src/wechaty/wechaty-impl.spec.ts:106:9 - error TS2322: Type 'true' is not assignable to type 'false'.
106 const noOneLeft: NotExistTest = true
~~~~~~~~~
Found 1 error in src/wechaty/wechaty-impl.spec.ts:106
image

Operating System:mac os

Copy link

dosubot bot commented Apr 21, 2024

The error Type 'true' is not assignable to type 'false' in your wechaty-impl.spec.ts file suggests a mismatch between the expected and actual types for the noOneLeft variable. This variable is part of a type assertion test designed to ensure that all protected properties in the WechatyImpl class match those defined in the WechatyInterface. The failure indicates a possible discrepancy between the class and interface definitions.

To address this, review the WechatyImpl class and the WechatyInterface to confirm they align correctly. Adjustments may be needed in one or both to resolve the type assertion error.

If the class and interface do match and the issue persists, consider verifying your TypeScript version. The error might stem from a version mismatch or incompatibility. Check your package.json or tsconfig.json for the TypeScript version used in your project.

Should the problem remain unresolved after these steps, providing additional details about your Node.js and Yarn versions could help identify the issue more accurately.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@gakkiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii

I tried switching the version to 4.9.0 but the problem still exists
image

@huan huan self-assigned this Apr 26, 2024
@huan
Copy link
Member

huan commented Apr 26, 2024

Thanks for trying to run the Wechaty source code locally.

I will take a look in the following weeks and get it fixed.

Stay tunned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants