Skip to content

Commit

Permalink
fix(react): install missing react-test-renderer dependency
Browse files Browse the repository at this point in the history
When we install @nrwl/react we should also install react-test-renderer.

ISSUES CLOSED: #7578
  • Loading branch information
ndcunningham committed Nov 9, 2021
1 parent 0b0c37d commit f161bf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/generators/init/init.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
typesReactDomVersion,
typesReactVersion,
testingLibraryReactHooksVersion,
reactTestRendererVersion,
} from '../../utils/versions';

function setDefault(host: Tree) {
Expand Down Expand Up @@ -66,6 +67,7 @@ function updateDependencies(host: Tree) {
'@types/react-dom': typesReactDomVersion,
'@testing-library/react': testingLibraryReactVersion,
'@testing-library/react-hooks': testingLibraryReactHooksVersion,
'react-test-renderer': reactTestRendererVersion,
}
);
}
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/utils/versions.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const testingLibraryReactHooksVersion = '7.0.2';

export const reduxjsToolkitVersion = '1.6.2';
export const reactReduxVersion = '7.2.5';
export const reactTestRendererVersion = '17.0.2';

export const eslintPluginImportVersion = '2.25.2';
export const eslintPluginJsxA11yVersion = '6.4.1';
Expand Down

0 comments on commit f161bf9

Please sign in to comment.