Skip to content

Commit

Permalink
fix(vite-plugin-angular): improve support for Angular snapshot detect…
Browse files Browse the repository at this point in the history
…ion (#850)
  • Loading branch information
brandonroberts authored Jan 12, 2024
1 parent a6468db commit 94a6ea7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/vite-plugin-angular/setup-vitest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,14 @@ function isAngularFixture(val: any): boolean {
return false;
}

if (val['componentRef'] || val['componentInstance']) {
return true;
}

if (val['componentType']) {
return true;
}

// * Angular fixture keys in Fixture component Object
const fixtureKeys = [
'componentRef',
Expand Down

0 comments on commit 94a6ea7

Please sign in to comment.