Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during run test on Jest #209

Open
przemyslawjanpietrzak opened this issue Feb 8, 2019 · 4 comments
Open

Error during run test on Jest #209

przemyslawjanpietrzak opened this issue Feb 8, 2019 · 4 comments

Comments

@przemyslawjanpietrzak
Copy link

przemyslawjanpietrzak commented Feb 8, 2019

After migrate from karma to jest i get error:

Test suite failed to run

    /Users/przemyslawpietrzakfrontend/node_modules/lodash-es/find.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import createFind from './_createFind.js';


    SyntaxError: Unexpected identifier

      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/ScriptTransformer.js:440:17)
      at Object.<anonymous> (node_modules/angular2-jsonapi/src/models/json-api.model.ts:1:1)
@WillGeller
Copy link

@ghidoz I am running into the same issue, any thoughts on solution?

@WillGeller
Copy link

@userann
Copy link

userann commented Dec 13, 2019

if I remember right....to work along with json api, I created that mocks folder, created angular2-jsonapi.ts file and mocked JsonApiModel...like this(i think, not sure but you can try):

image

@sean-clayton
Copy link

Running into this issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants