From 324eb2f69dfea39a7034f281e9d0803419cc1bdc Mon Sep 17 00:00:00 2001 From: overlookmotel <557937+overlookmotel@users.noreply.github.com> Date: Wed, 16 Jul 2025 10:40:15 +0000 Subject: [PATCH] ci(napi/oxlint): run tests with `coverage` profile (#12308) The bug fixed in #12299 went unnoticed originally because we build the `napi/oxlint2` crate for tests in release mode, with debug assertions disabled. Instead, build with `--profile coverage` which enables debug assertions. It's also faster to compile. --- napi/oxlint2/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/napi/oxlint2/package.json b/napi/oxlint2/package.json index 48e1aafee8633..90ece7603fe21 100644 --- a/napi/oxlint2/package.json +++ b/napi/oxlint2/package.json @@ -5,7 +5,7 @@ "type": "module", "scripts": { "build-dev": "napi build --platform --js ./bindings.js --dts ./bindings.d.ts --output-dir src --no-dts-cache --esm", - "build-test": "pnpm run build-dev --release --features force_test_reporter", + "build-test": "pnpm run build-dev --profile coverage --features force_test_reporter", "build": "pnpm run build-dev --release", "test": "vitest" },