question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

config-overrides not being processed in test command

See original GitHub issue

I’m doing this to add emotion support:

addBabelPlugin('emotion'),

it works just fine on yarn start but if I run yarn test I get the error saying that I’m trying to use the emotion shortcuts without the babel plugin.

Do I need to do something to inject the plugin in the Jest config?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
FezVrastacommented, Oct 30, 2018

So, the end of the story is, the “react-app-rewired approach” is to use .babelrc like explained in this issue:

https://github.com/timarney/react-app-rewired/issues/328

I’d say it’s a viable solution, let’s close this.

0reactions
pyydingcommented, Jan 3, 2019

Hey, @FezVrasta npm test works if you create a .babelrc with mentioned settings but do you know how to get breakpoints working for debugging tests?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overriding the Configuration File from the CLI
Test your command with the --test-settings option before running it live, as explained below. Properties in the Configuration File. The --co option identifies ......
Read more >
Running DropwizardAppRule before each test in a class using ...
I'm actually having another issue myself trying with DropwizardAppRule not properly being setup and torn down between tests.
Read more >
react-app-rewired - npm
Start using react-app-rewired in your project by running `npm i react-app-rewired`. There are 315 other projects in the npm registry using ...
Read more >
Command line reference - SpecSync Documentation
With the --configOverride option any configuration file setting can be overridden even if there is no dedicated command line option for that. Using...
Read more >
Command-Line Tool | User Manual - Taurus
Taurus tool is an Open Source test automation framework, providing simple YAML-based configuration format with DSL, executed through command-line and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found