Error while test extracting. Cannot convert object to primitive value #378
Replies: 3 comments 2 replies
-
Hey there. Seems this problem started with some changes in ECMAScript2026. The cause is (if it's interesting): In the With ECMAScript2026 the String constructor accesses the
As we return again a proxy from |
Beta Was this translation helpful? Give feedback.
-
Great to hear you were already aware of the issue @Danielku15. I'll await the fix with anticipation. |
Beta Was this translation helpful? Give feedback.
-
Thanks @Danielku15. Just updated in VSCode to v1.3.2 and all the test extraction errors are gone! In the OpenVSX Marketplace (used by Cursor), the latest version is 1.3.0. Can you update it here too? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks for a great VSCode plugin.
I'm using the default
evaluation-cjs
extractWith
option and not all of my tests are showing up in the VSCode test viewer. Looking at the Mocha Test Runner logs, I'm seeing lots ofError while test extracting Cannot convert object to primitive value
messages.I can re-create the issue with this simple test file:
which produces the following error when refreshing the test list in VSCode:
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions