build: make test runs both cargo test and vitest

This commit is contained in:
xfy 2026-06-24 10:14:20 +08:00
parent c0af99736d
commit 368a651fa6
2 changed files with 2 additions and 2 deletions

View File

@ -150,10 +150,9 @@ Do not edit `public/tiptap/` — they are build artifacts.
## Testing ## Testing
```bash ```bash
cargo test # standard Rust test suite make test # cargo test (Rust, 392 tests) + vitest (editor lib, 46 tests)
dx check # Dioxus type-check (catches component/Router issues) dx check # Dioxus type-check (catches component/Router issues)
cargo clippy # lint cargo clippy # lint
cd libs/tiptap-editor && npm test # Vitest unit tests for the editor lib
``` ```
Most tests use `#[cfg(all(test, feature = "server"))]` — they only run when the server feature is active (which is the default). No integration tests requiring a database connection. Most tests use `#[cfg(all(test, feature = "server"))]` — they only run when the server feature is active (which is the default). No integration tests requiring a database connection.

View File

@ -44,6 +44,7 @@ css-watch:
test: test:
@cargo test @cargo test
@cd libs/tiptap-editor && npm test
clean: clean:
@cargo clean @cargo clean