Replies: 1 comment 1 reply
-
|
Hello, I want to clarify that RedisSMQ itself does not throw the error "file ending .ts not supported." Both ESM and CommonJS are fully supported. Upon reviewing the changes from v8 to v9 regarding TypeScript and module exports, it appears that there haven’t been any modifications in that regard. It's important to note that Jest typically does not transform files within node_modules, which can sometimes lead to unexpected errors. I suspect the issue may stem from a configuration mismatch between Jest and TypeScript in your application. Could you please provide sample code that reproduces the issue? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi, I updated from 8.3.1 to 9.0.9.
My tsconfig:
"target": "ES2022", "module": "commonjs",I face some issues now.
Cannot set property strategy of #<Object> which has only a getterSo somehow the app framework has issues now that I use the version 9. I tried mocking stuff away and got some steps further but finally I need some functionality from the app framework in the test that I can't mock.
So my question. Did anything change from version
8.3.1to9.0.9in terms of typescript/modules/dependencies/export. I don't know what.Or is it even the case that commonjs is not supported anymore? Do you have any idea?
Beta Was this translation helpful? Give feedback.
All reactions