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 have problem with jest vs angularfire2. I set up jest and got error SyntaxError: Unexpected token export. Full output:
PASS src/app/diary/components/diary.spec.ts
FAIL src/app/diary/containers/my-dairy-page.spec.ts
● Test suite failed to run
/Users/svlad/dev/ng2-diary-book/node_modules/angularfire2/auth.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){export * from './auth/auth';
^^^^^^
SyntaxError: Unexpected token export
at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/ScriptTransformer.js:289:17)
at Object.<anonymous> (src/app/core/containers/app.ts:18:14)
at Object.<anonymous> (src/app/core/core.module.ts:15:13)
Test Suites: 1 failed, 1 passed, 2 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: 2.467s
Version info
Angular:
4.3.5
Firebase:
4.2.0
AngularFire:
4.0.0-rc0
Other (e.g. Ionic/Cordova, Node, browser, operating system):
I have problem with jest vs angularfire2. I set up jest and got error
SyntaxError: Unexpected token export
. Full output:Version info
Angular:
4.3.5
Firebase:
4.2.0
AngularFire:
4.0.0-rc0
Other (e.g. Ionic/Cordova, Node, browser, operating system):
How to reproduce these conditions
Steps to set up and reproduce
<rootDir>/src/setupJest.ts
with contents:import 'jest-preset-angular';
But actually you can just:
Debug output
Output in debug mode:
Expected behavior
I should not get syntax error, since this code should be transpiled to the ES5 (since I said it in the config).
Also strange thing is even if I set
transformIgnorePatterns
to empty array which means ignore nothing I will get same error.Actual behavior
I get syntax error about export.
The text was updated successfully, but these errors were encountered: