Skip to content

Commit

Permalink
Remove prod build of jest-react
Browse files Browse the repository at this point in the history
This honestly shouldn't be a public package anyway. We thought it might
be at one point but it's not, despite the fact that it gets published.
It's really only used by our repo, as a place to put our internal test
helpers. It might as well just live in scripts/ or something.

We don't need a prod build of it. My immediate motivation is so I can
use async/await in the new helpers I'm implementing.
  • Loading branch information
acdlite committed Mar 2, 2023
1 parent d49e0e0 commit acb8879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions packages/jest-react/npm/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
'use strict';

if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/jest-react.production.min.js');
} else {
module.exports = require('./cjs/jest-react.development.js');
}
module.exports = require('./cjs/jest-react.development.js');
2 changes: 1 addition & 1 deletion scripts/rollup/bundles.js
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ const bundles = [

/******* Jest React (experimental) *******/
{
bundleTypes: [NODE_DEV, NODE_PROD],
bundleTypes: [NODE_DEV],
moduleType: ISOMORPHIC,
entry: 'jest-react',
global: 'JestReact',
Expand Down

0 comments on commit acb8879

Please sign in to comment.