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

React Pact example - Need library to be updated #11

Open
reachbharathan opened this issue Oct 1, 2019 · 0 comments
Open

React Pact example - Need library to be updated #11

reachbharathan opened this issue Oct 1, 2019 · 0 comments

Comments

@reachbharathan
Copy link

reachbharathan commented Oct 1, 2019

Current package.json has 78 vulnerabilities (65 low, 1 moderate, 12 high)
run npm audit fix to fix them, or npm audit for details

Need to update the below packages
apollo-cache-inmemory ^1.3.9 → ^1.6.3
apollo-client ^2.4.5 → ^2.6.4
apollo-link-http ^1.5.5 → ^1.5.16
axios 0.18.0 → 0.19.0
graphql ^14.0.2 → ^14.5.8
graphql-tag ^2.10.0 → ^2.10.1
node-fetch ^2.2.1 → ^2.6.0
react ^16.5.2 → ^16.10.1
react-dom ^16.5.2 → ^16.10.1
react-scripts 2.0.5 → 3.1.2
@pact-foundation/pact 7.0.3 → 9.1.1
@pact-foundation/pact-node 6.20.0 → 9.0.4
cross-env ^5.2.0 → ^6.0.0

Currently there are FAIL src/rest/hero.service.test.pact.js
● Test suite failed to run

Jest encountered an unexpected token

This usually means that you are trying to import a file which Jest cannot parse, e.g. it's not plain JavaScript.

By default, if Jest sees a Babel config, it will use that to transform your files, ignoring "node_modules".

Here's what you can do:
 • To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
 • If you need a custom transformation specify a "transform" option in your config.
 • If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.

You'll find more details and examples of these config options in the docs:
https://jestjs.io/docs/en/configuration.html
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

1 participant