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

npm test fails #13

Open
TristanBa opened this issue Jul 27, 2019 · 1 comment
Open

npm test fails #13

TristanBa opened this issue Jul 27, 2019 · 1 comment
Labels

Comments

@TristanBa
Copy link

I downloaded the latest release and ran the tests, but it fails. Please advise on the fix

>npm test

> [email protected] test C:\Code\Svy
> react-scripts test --env=jsdom

 FAIL  src\App.test.js
  ● Test suite failed to run

    ReferenceError: jQuery is not defined

      at node_modules/jquery-ui/ui/widgets/datepicker.js:33:12
      at Object.<anonymous> (node_modules/jquery-ui/ui/widgets/datepicker.js:35:2)
      at Object.<anonymous> (src/SurveyCreator.js:15:1)
      at Object.<anonymous> (src/App.js:4:22)
      at Object.<anonymous> (src/App.test.js:3:12)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        1.725s
Ran all test suites related to changed files.

Watch Usage
 › Press p to filter by a filename regex pattern.
 › Press t to filter by a test name regex pattern.
 › Press q to quit watch mode.
 › Press Enter to trigger a test run.
@tsv2013
Copy link
Member

tsv2013 commented Sep 17, 2019

Sorry for the late response.
This project is a boilerplate demonstrating how to integrate SurveyJS libraries into default react project template. We didn't add any unit tests here and the default ones doesn't related to SurveyJS code.
As far as I understand from the error message you need to load (add) a iquery script

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

No branches or pull requests

2 participants