Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Issues
  • #6174
Closed
Open
Issue created Jan 11, 2019 by Administrator@rootContributor

After ejecting, testing fails

Created by: eliranbenishai

Is this a bug report?

Yes.

Did you try recovering your dependencies?

Yes.

Environment

System: OS: Windows 10 CPU: x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz Binaries: Yarn: 1.13.0 npm: 6.2.0

Steps to Reproduce

  1. create-react-app testing
  2. npm run eject
  3. npm test
  4. Observe spectacular failure

Expected Behavior

Test should pass just as it did before ejecting.

Actual Behavior

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

[BABEL] C:\code\testing\src\App.test.js: Cannot find module '@babel/plugin-transform-react-jsx' (While processing: "C:\\code\\testing\\node_modules\\babel-preset-react-app\\index.js$1")

  at _pluginTransformReactJsx (node_modules/babel-preset-react-app/node_modules/@babel/preset-react/lib/index.js:19:39)
  at _default (node_modules/babel-preset-react-app/node_modules/@babel/preset-react/lib/index.js:73:16)
  at node_modules/@babel/helper-plugin-utils/lib/index.js:19:12
  at loadDescriptor (node_modules/@babel/core/lib/config/full.js:165:14)
  at cachedFunction (node_modules/@babel/core/lib/config/caching.js:33:19)
  at loadPresetDescriptor (node_modules/@babel/core/lib/config/full.js:235:63)

Test Suites: 1 failed, 1 total Tests: 0 total Snapshots: 0 total Time: 1.954s

Help?

Assignee
Assign to
Time tracking