Oops! I mistakenly opened an issue here https://github.com/facebook/jest/issues/8801 - it was the wrong place for it.
I am currently using Vue CLI 3 with Typescript v3.4.3, and when running tests from the CLI, I encountered several issues.
While running my test, Jest flagged an error regarding import *
import * as tslib_1 from "tslib";
^
SyntaxError: Unexpected token *
4 | import VueRouter from 'vue-router';
5 | import {storeFactory} from '@/store';
> 6 | import List from '@/core/workflow-builder/NodeBuilder.vue';
| ^
7 | import {WidgetStateMixin} from '@owui-commons/vue-widget-state-manager';
8 |
9 | const localVue = createLocalVue();
at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:403:17)
at Object.<anonymous> (tests/unit/List.spec.ts:6:1)
To address this issue, I searched for files containing import * as tslib_1 from "tslib"; in my node_modules directory and found some in the rxjs/_esm5 folder.
transformIgnorePatterns: [
"node_modules/(?!rxjs/)"
],
Please take a look at the link provided above to view my jest configuration and previous log messages.
Thank you :)