Skip to content

Commit

Permalink
fix(frontend): fix react testing library migration (#1637)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Jul 26, 2019
1 parent df0e00d commit 2188077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/migrations/update-8-3-0/update-8-3-0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ function updateDependencies(tree: Tree) {
}

function updateImports(host: Tree) {
let ig = ignore().add(['*', '!*.ts', '!*.tsx']); // include only .tsx? files
let ig = ignore();

if (host.exists('.gitignore')) {
ig = ig.add(host.read('.gitignore').toString());
}

host.visit(path => {
if (ig.ignores(relative('/', path))) {
if (ig.ignores(relative('/', path)) || !/\.tsx?$/.test(path)) {
return;
}

Expand Down

0 comments on commit 2188077

Please sign in to comment.