diff --git a/product-source/hololake-platform/scripts/local-native-candidate.test.mjs b/product-source/hololake-platform/scripts/local-native-candidate.test.mjs index a744745..cb85389 100644 --- a/product-source/hololake-platform/scripts/local-native-candidate.test.mjs +++ b/product-source/hololake-platform/scripts/local-native-candidate.test.mjs @@ -22,4 +22,8 @@ test('local native candidate has an isolated macOS package identity', async () = ) assert.match(packageJson.scripts.build, /--configLoader runner/) assert.match(packageJson.scripts['test:native-core'], /--configLoader runner/) + assert.match( + await readFile('scripts/run-hololake-native-quality-gate.sh', 'utf8'), + /vite build --configLoader runner[\s\S]*vitest run --configLoader runner[\s\S]*--coverage --configLoader runner/, + ) }) diff --git a/product-source/hololake-platform/scripts/run-hololake-native-quality-gate.sh b/product-source/hololake-platform/scripts/run-hololake-native-quality-gate.sh index 6bc6a3e..4cac32c 100755 --- a/product-source/hololake-platform/scripts/run-hololake-native-quality-gate.sh +++ b/product-source/hololake-platform/scripts/run-hololake-native-quality-gate.sh @@ -119,12 +119,12 @@ run_gate frontend_zero_warning_lint \ run_gate frontend_type_contract \ run_package_tool tsc -b run_gate frontend_build \ - run_package_tool vite build + run_package_tool vite build --configLoader runner run_gate frontend_unit_and_integration_tests \ - run_package_tool vitest run + run_package_tool vitest run --configLoader runner run_gate auditable_native_core_lines_and_functions_100 \ run_package_tool vitest run \ - --config vitest.guanghu-native.config.ts --coverage + --config vitest.guanghu-native.config.ts --coverage --configLoader runner run_gate rust_format \ cargo fmt --all --manifest-path "${repository_root}/src-tauri/Cargo.toml" -- --check run_gate rust_unit_and_integration_tests \