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

Yarn test fails #6

Open
olliahonen opened this issue Apr 8, 2020 · 0 comments
Open

Yarn test fails #6

olliahonen opened this issue Apr 8, 2020 · 0 comments

Comments

@olliahonen
Copy link
Contributor

  • Fresh clone
  • yarn test
  • Press 'a' to run all tests
  • Expected output: All tests pass
  • Observed output:
 FAIL  src/App.test.tsx
  ● Test suite failed to run

    TypeError: Cannot read property 'parentNode' of undefined

       6 | import ChilicornLogo from './chilicorn_logo_rgb.svg'
       7 |
    >  8 | ReactGA.initialize('UA-161398132-1');
         |         ^
       9 | ReactGA.set({ anonymizeIp: true });
      10 | ReactGA.pageview('/');
      11 |

      at node_modules/react-ga/dist/react-ga.js:926:7
      at _default (node_modules/react-ga/dist/react-ga.js:927:5)
      at Object.initialize (node_modules/react-ga/dist/react-ga.js:267:85)
      at Object.<anonymous> (src/App.tsx:8:9)
      at Object.<anonymous> (src/App.test.tsx:3:1)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        1.825s
Ran all test suites.

Watch Usage: Press w to show more.

There aren't too many tests so maybe this isn't even supposed to work, in which case the README should probably be adjusted.

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