fix(react): fix typo in testing-library migrations

This commit is contained in:
Ihor 2022-07-15 20:46:38 +02:00 committed by GitHub
parent e3d5c53d88
commit 57a6ebcfcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,11 +14,11 @@ export async function update(tree: Tree) {
if (!file.endsWith('.spec.ts')) return;
const content = tree.read(file).toString();
if (content.includes('@testing-library/react-hook')) {
if (content.includes('@testing-library/react-hooks')) {
tree.write(
file,
content.replace(
/@testing-library\/react-hook/g,
/@testing-library\/react-hooks/g,
'@testing-library/react'
)
);