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

React app rewire ts jest #8

Conversation

christensena
Copy link

@christensena christensena commented Dec 3, 2017

NOTE: Merge #7 first

This adds ts-jest rewire. It is an independent package as the new syntax for rewiring jest config is separate.

From the README:

react-app-rewire-ts-jest

Add Typescript testing with jest to a react-app-rewired config.

/* config-overrides.js */

const rewireTsJest = require('react-app-rewire-ts-jest');

module.exports = {
  jest: function override(config) {
    // ...
    config = rewireTsJest(config);
    // ...
    return config;
  }
}

@icopp
Copy link
Contributor

icopp commented Dec 5, 2017

See the comment on the other PR. I'll see about extracting this into its own repo when we next do our internal infrastructure update stuff.

@christensena christensena deleted the react-app-rewire-ts-jest branch December 5, 2017 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants