From 57a6ebcfcdb6537e6e9c5a9c2b8315cea5fe0282 Mon Sep 17 00:00:00 2001 From: Ihor Date: Fri, 15 Jul 2022 20:46:38 +0200 Subject: [PATCH] fix(react): fix typo in testing-library migrations --- .../update-14-0-0/replace-testing-library-react-hook.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react/src/migrations/update-14-0-0/replace-testing-library-react-hook.ts b/packages/react/src/migrations/update-14-0-0/replace-testing-library-react-hook.ts index fb269111db..2709f98dab 100644 --- a/packages/react/src/migrations/update-14-0-0/replace-testing-library-react-hook.ts +++ b/packages/react/src/migrations/update-14-0-0/replace-testing-library-react-hook.ts @@ -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' ) );