TypeError: Cannot set property myVariable of [object Object] which has only a getter #3504
Unanswered
CyrilQuandalle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've already posted my issue in @swc/jest repo but as I'm looking for guidance I'll repost issue :
When I my test with @swc/jest I have the following error while running certain tests.
TypeError: Cannot set property myVariable of [object Object] which has only a getter
myVariable is declared like that in a file external to the test files :
export const registerSettingsIntegrationDatalayer = () => myfunction()
I also tried to make my function return a string just for a dummy try but I got the same error.
I'm using @swc/core : ^1.2.137 and @swc/jest : ^0.2.17 and here is my swc configuration :
Is there something in my configuration that I should modify to fix my issue ?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions