-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
6 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
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,35 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" class="dark h-full"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vitest Preview Dashboard</title> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
</head> | ||
<body class="h-full bg-slate-200"> | ||
<div class="p-10 m-auto"> | ||
No previews found.<br /> | ||
Please add following lines to your test: <br /> | ||
<br /> | ||
<div class="bg-slate-400 p-4 w-fit rounded"> | ||
<code> | ||
import { debug } from 'vitest-preview'; | ||
<br /> | ||
<br /> | ||
// Inside your tests | ||
<br /> | ||
describe('my test', () => { | ||
<br /> | ||
render(<MyComponent />); | ||
<br /> | ||
debug(); // 👈 Add this line | ||
<br /> | ||
} | ||
</code> | ||
</div> | ||
<br /> | ||
Then rerun your tests. | ||
</div> | ||
</body> | ||
</html> |
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