From 382b009ffdd6bbd388fdf2b1c7857ecf83ff5e0a Mon Sep 17 00:00:00 2001 From: Namekuji Date: Sat, 3 Jun 2023 00:40:51 -0400 Subject: [PATCH] add cargo test script --- packages/backend/native-utils/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/native-utils/package.json b/packages/backend/native-utils/package.json index 691914171..64f9e0e50 100644 --- a/packages/backend/native-utils/package.json +++ b/packages/backend/native-utils/package.json @@ -37,10 +37,11 @@ "build": "napi build --features napi --platform --release ./built/", "build:debug": "napi build --platform", "prepublishOnly": "napi prepublish -t npm", - "test": "ava", + "test": "pnpm run cargo:test && pnpm run build && ava", "universal": "napi universal", "version": "napi version", "format": "cargo fmt --all", + "cargo:test": "pnpm run cargo:unit && pnpm run cargo:integration", "cargo:unit": "cargo test unit_test && cargo test -F napi unit_test", "cargo:integration": "cargo test -F noarray int_test -- --test-threads=1" }