请帮助,我得到
SyntaxError: Cannot use import statement outside a module"
在Angular应用中使用@ ionic-native / health。在此处回购,运行“ npm i”,然后运行“ ng test”:
我相信我终于找到了答案:
jest.config.js
transformIgnorePatterns: ['node_modules/(?!@ngrx|@ionic-native|@ionic)']
tsconfig.spec.json
"allowJs": true