From dd748776b21642561a19feb22518ae07c4417db8 Mon Sep 17 00:00:00 2001 From: Yuri Karamian Date: Mon, 17 Aug 2026 21:08:31 +0200 Subject: [PATCH] test: add local verification command --- README.md | 8 ++++++++ package.json | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index d7f103c..c505dbb 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,14 @@ pnpm install pnpm tauri dev ``` +### Verification + +Run the frontend checks and tests, Rust tests and lints, and production frontend build with one command: + +```bash +pnpm verify +``` + ### Production Build ```bash diff --git a/package.json b/package.json index 20ff70a..aa8797d 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,10 @@ "prepare": "svelte-kit sync || echo ''", "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "test": "node --test tests/*.test.mjs", + "test:rust": "cargo test --manifest-path src-tauri/Cargo.toml", + "lint:rust": "cargo fmt --manifest-path src-tauri/Cargo.toml --check && cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings", + "verify": "pnpm check && pnpm test && pnpm test:rust && pnpm lint:rust && pnpm build", "tauri": "tauri", "tauri:dev": "tauri dev", "tauri:build": "tauri build"