Skip to content

Commit

Permalink
fix(react): fix typo in testing-library migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
kopach authored Jul 15, 2022
1 parent e3d5c53 commit 57a6ebc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
);
Expand Down

0 comments on commit 57a6ebc

Please sign in to comment.