You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Vitest in a NestJS application and obviously this application has decorators, in my unit tests all tests are working properly, but when I try to run integration tests, it gives me the error
Error: Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.
❯ getRollupError node_modules/rollup/dist/es/shared/parseAst.js:392:41
❯ convertProgram node_modules/rollup/dist/es/shared/parseAst.js:1070:26
❯ parseAstAsync node_modules/rollup/dist/es/shared/parseAst.js:1924:93
❯ ssrTransformScript node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:52319:11
❯ loadAndTransform node_modules/vite/dist/node/chunks/dep-CDnG8rE7.js:51917:72
I'm using swc.vite() plugin in my vitest.integration.config.mts and it still gives me the error
And this error only happens when I'm using my auto module loader
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey!
I'm trying to use Vitest in a NestJS application and obviously this application has decorators, in my unit tests all tests are working properly, but when I try to run integration tests, it gives me the error
I'm using swc.vite() plugin in my vitest.integration.config.mts and it still gives me the error
And this error only happens when I'm using my auto module loader
Does anyone has an idea on how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions