fix(react): install missing react-test-renderer dependency (#7675)
When we install @nrwl/react we should also install react-test-renderer. ISSUES CLOSED: #7578
This commit is contained in:
parent
8f205715ea
commit
6ac6e981cd
2
packages/react/src/generators/init/init.ts
Normal file → Executable file
2
packages/react/src/generators/init/init.ts
Normal file → Executable file
@ -21,6 +21,7 @@ import {
|
||||
typesReactDomVersion,
|
||||
typesReactVersion,
|
||||
testingLibraryReactHooksVersion,
|
||||
reactTestRendererVersion,
|
||||
} from '../../utils/versions';
|
||||
|
||||
function setDefault(host: Tree) {
|
||||
@ -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,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
1
packages/react/src/utils/versions.ts
Normal file → Executable file
1
packages/react/src/utils/versions.ts
Normal file → Executable file
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user