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

Write react unit tests for the app #8

Open
sdankel opened this issue Jun 5, 2023 · 0 comments
Open

Write react unit tests for the app #8

sdankel opened this issue Jun 5, 2023 · 0 comments

Comments

@sdankel
Copy link
Member

sdankel commented Jun 5, 2023

First, fix the issue with webpack + jest to get this test passing.

 FAIL  src/App.test.tsx
  ● Test suite failed to run

    Cannot find module 'file-loader?esModule=false!./src-noconflict/ext-beautify.js' from 'node_modules/ace-builds/webpack-resolver.js'

    Require stack:
      node_modules/ace-builds/webpack-resolver.js
      src/features/editor/components/Editor.tsx
      src/App.tsx
      src/App.test.tsx

      at Resolver.resolveModule (node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.<anonymous> (node_modules/ace-builds/webpack-resolver.js:2:45)

Then write unit tests for features in the App.

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

No branches or pull requests

2 participants