shepherd-pro/react-shepherd

jest syntax error

tanmay964 opened this issue · 1 comments

I am not able run one of the test cases due to this issue
**unexpected token '.'

import "shepherd.js/dist/css/shepherd.js";**

@tanmay964 could you provide an example? I just ran the tests without issue.

yarn test
yarn run v1.22.10
$ yarn workspace react-shepherd test
$ cross-env CI=1 react-scripts test
PASS src/__tests__/shepherd.test.tsx
  <ShepherdTour />
    ✓ exists (1ms)
    ✓ renders the component and starts tour (52ms)

  console.error ../../node_modules/react-dom/cjs/react-dom.development.js:86
    Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot

Test Suites: 1 passed, 1 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        1.528s
Ran all test suites.
✨  Done in 7.40s.