Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Latest commit

 

History

History
21 lines (16 loc) · 486 Bytes

File metadata and controls

21 lines (16 loc) · 486 Bytes

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;
  }
}

NOTES

Version is the react-scripts version it was tested with.