-
-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vite-plugin-angular): add snapshot testing support for vitest (#678
- Loading branch information
Showing
4 changed files
with
424 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
packages/vite-plugin-angular/src/lib/__snapshots__/angular-fixture-snapshot.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Angular Fixture Snapshot > create angular component snapshot 1`] = ` | ||
TestComponent { | ||
"__ngContext__": 2, | ||
"count": 0, | ||
} | ||
`; | ||
|
||
exports[`Angular Fixture Snapshot > create angular fixture snapshot 1`] = ` | ||
<app-test> | ||
<div | ||
_ngcontent-a-c3752700837="" | ||
> | ||
<a | ||
_ngcontent-a-c3752700837="" | ||
href="https://analogjs.org/" | ||
target="_blank" | ||
> | ||
<img | ||
_ngcontent-a-c3752700837="" | ||
alt="Analog Logo" | ||
class="logo analog" | ||
src="/analog.svg" | ||
/> | ||
</a> | ||
</div> | ||
<h2 | ||
_ngcontent-a-c3752700837="" | ||
> | ||
Analog | ||
</h2> | ||
<h3 | ||
_ngcontent-a-c3752700837="" | ||
> | ||
The fullstack meta-framework for Angular! | ||
</h3> | ||
<div | ||
_ngcontent-a-c3752700837="" | ||
class="card" | ||
> | ||
<button | ||
_ngcontent-a-c3752700837="" | ||
type="button" | ||
> | ||
Count 0 | ||
</button> | ||
</div> | ||
<p | ||
_ngcontent-a-c3752700837="" | ||
class="read-the-docs" | ||
> | ||
For guides on how to customize this project, visit the | ||
<a | ||
_ngcontent-a-c3752700837="" | ||
href="https://analogjs.org" | ||
target="_blank" | ||
> | ||
Analog documentation | ||
</a> | ||
</p> | ||
</app-test> | ||
`; |
Oops, something went wrong.