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

Polyfills errors ==> type ErrorHandler #8

Closed
jboteros opened this issue Mar 13, 2020 · 1 comment · Fixed by #7
Closed

Polyfills errors ==> type ErrorHandler #8

jboteros opened this issue Mar 13, 2020 · 1 comment · Fixed by #7
Assignees
Labels
bug Something isn't working

Comments

@jboteros
Copy link
Owner

Hello @jmespiz-addi, I had trouble adding testing with the polyfill.

You can evaluate the test and I'm still looking for a solution to continue with the development of the tests.

Thanks!

`➜ yarn test

yarn run v1.22.4
$ jest
FAIL tests/Loader.test.js
● Test suite failed to run

/Volumes/JboteroData/Master/Addi/uservalidation/node_modules/react-native/Libraries/polyfills/error-guard.js:14
type ErrorHandler = (error: mixed, isFatal: boolean) => void;
     ^^^^^^^^^^^^

SyntaxError: Unexpected identifier

  at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1059:14)
  at Object.<anonymous> (node_modules/react-native/jest/setup.js:16:6)

FAIL tests/App.test.js
● Test suite failed to run

/Volumes/JboteroData/Master/Addi/uservalidation/node_modules/react-native/Libraries/polyfills/error-guard.js:14
type ErrorHandler = (error: mixed, isFatal: boolean) => void;
     ^^^^^^^^^^^^

SyntaxError: Unexpected identifier

  at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1059:14)
  at Object.<anonymous> (node_modules/react-native/jest/setup.js:16:6)

FAIL tests/Switch.test.js
● Test suite failed to run

/Volumes/JboteroData/Master/Addi/uservalidation/node_modules/react-native/Libraries/polyfills/error-guard.js:14
type ErrorHandler = (error: mixed, isFatal: boolean) => void;
     ^^^^^^^^^^^^

SyntaxError: Unexpected identifier

  at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1059:14)
  at Object.<anonymous> (node_modules/react-native/jest/setup.js:16:6)

FAIL tests/FromUser.test.js
● Test suite failed to run

/Volumes/JboteroData/Master/Addi/uservalidation/node_modules/react-native/Libraries/polyfills/error-guard.js:14
type ErrorHandler = (error: mixed, isFatal: boolean) => void;
     ^^^^^^^^^^^^

SyntaxError: Unexpected identifier

  at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1059:14)
  at Object.<anonymous> (node_modules/react-native/jest/setup.js:16:6)

Test Suites: 4 failed, 4 total
Tests: 0 total
Snapshots: 0 total
Time: 0.772s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
`

@jboteros jboteros linked a pull request Mar 13, 2020 that will close this issue
@jboteros jboteros self-assigned this Mar 13, 2020
@jboteros jboteros added the bug Something isn't working label Mar 13, 2020
@jboteros
Copy link
Owner Author

Jest was replaced by Detox + Mocha.
Detox is a Gray box end-to-end testing and automation library for mobile apps.
https://github.com/wix/Detox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant