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

Add notes about Jest to Readme #146

Closed
timarney opened this issue Nov 27, 2017 · 0 comments
Closed

Add notes about Jest to Readme #146

timarney opened this issue Nov 27, 2017 · 0 comments
Assignees

Comments

@timarney
Copy link
Owner

We need to document how to configure Jest

1). Add note .babelrc is needed for jest to use plugins used by rewires
2). Option to configure via package.json
3). Configuring via the export config (maybe when to use this vs package.json)

module.exports = {
  webpack: (config, env) => {
    config = rewireStyledComponents(config, env);
    return config;
  },
  jest: (config) => {
    ...your modifications...
    return config;
  }
}

Anyone want to tackle this?

dawnmist added a commit to dawnmist/react-app-rewired that referenced this issue Nov 28, 2017
* Document the alternative module.exports options.
* Discuss configuration options for Jest/Babel and when you may want to use Jest in package.json verses the 'jest' function in config-overrides.js
* Document how to customise the configuration for the Webpack Dev Server.
@dawnmist dawnmist self-assigned this Nov 28, 2017
@Guria Guria closed this as completed in a8e3edf Nov 29, 2017
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