generated from nhcarrigan/template
test: add E2E integration tests for cross-platform notifications
Add comprehensive E2E-style integration tests for notification commands that verify command structure without executing system APIs. This approach enables testing cross-platform code in Linux CI environments. Changes: - Add 10 E2E tests for notification command structure verification - Add helper functions to build commands for testing (Linux, Windows) - Test command arguments, quote escaping, unicode support, edge cases - Fix flaky frontend test by mocking console.error in config store test - Fix lint errors (unused variables, TypeScript any types, unused imports) - Fix TypeScript type errors in Svelte components Test coverage: - notifications.rs: 10 new E2E tests (command structure verification) - All 417 backend tests passing - All 363 frontend tests passing (no stderr output) - 61.08% backend coverage (appropriate for architecture) The E2E tests verify: ✓ Correct command names and arguments ✓ Proper quote escaping for PowerShell ✓ Unicode preservation across platforms ✓ Special character handling ✓ Edge case resilience (empty inputs) ✓ Cross-platform consistency ✨ This commit was crafted with love by Hikari~ 🌸
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { todos, type TodoItem } from "$lib/stores/todos";
|
||||
import { todos } from "$lib/stores/todos";
|
||||
import { CheckCircle, Circle, Loader } from "lucide-svelte";
|
||||
|
||||
interface Props {
|
||||
|
||||
Reference in New Issue
Block a user