swagger-stats
swagger-stats copied to clipboard
Error in tests when updating to 0.99.7
Hi guys, I recently updated my swagger version form 0.95.7 to 0.99.7 (latest) and my jest unit tests are failing. Here is the log:
RUNS src/data-query/stats/baseball/MLB/players/players-baseball-stats.test.js
node:internal/modules/esm/utils:180
throw new ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG();
^
TypeError: A dynamic import callback was invoked without --experimental-vm-modules
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:180:11)
at /Users/andres.f.losada/Documents/Repositories/xxx/products/<my-product>/node_modules/swagger-stats/lib/swsElasticEmitter.js:15:5
Is this expected? Am I missing some babel config (i've already tried adding @babel/plugin-syntax-dynamic-import to my .babelrc)
Any updates on this? I've also encountered this issue (with version 0.99.2), downgrading to 0.95.7 fixes that.