Run local tests on Node and Bun
This commit is contained in:
parent
da184e58e9
commit
15a711d729
@ -8,6 +8,7 @@
|
||||
|
||||
### Fixes
|
||||
|
||||
- Tests: make `bun run test` execute the local unit suite under both Node/Vitest and Bun (`test:node` + `test:bun`) so runtime-specific regressions are caught before CI.
|
||||
- Model config: centralize embedding/rerank/generation model resolution so `qmd embed`, `status`, `query`, `vsearch`, `pull`, SDK vector search, and `bench` use the same active `.qmd/index.yaml` model hints and environment fallbacks.
|
||||
- GPU/status: `qmd status` now uses the same embedding model identity as `qmd embed` when computing pending embeddings, so URI-backed embeddings are not incorrectly reported as pending under the legacy `embeddinggemma` alias.
|
||||
- GPU status: `qmd status` now always shows GPU mode/configuration without unsafe native probing, and CPU-fallback warnings point to `QMD_STATUS_DEVICE_PROBE=1 qmd status` for an actual backend probe. The no-GPU warning is emitted once per process instead of once per LLM instance during benchmarks.
|
||||
|
||||
@ -25,7 +25,10 @@
|
||||
"scripts": {
|
||||
"prepare": "[ -d .git ] && ./scripts/install-hooks.sh || true",
|
||||
"build": "tsc -p tsconfig.build.json && printf '#!/usr/bin/env node\n' | cat - dist/cli/qmd.js > dist/cli/qmd.tmp && mv dist/cli/qmd.tmp dist/cli/qmd.js && chmod +x dist/cli/qmd.js",
|
||||
"test": "vitest run --reporter=verbose test/",
|
||||
"test": "bun run test:unit",
|
||||
"test:node": "node ./node_modules/vitest/vitest.mjs run --reporter=verbose",
|
||||
"test:bun": "bun test --preload ./src/test-preload.ts",
|
||||
"test:unit": "bun run test:node -- test/ && bun run test:bun -- test/",
|
||||
"qmd": "tsx src/cli/qmd.ts",
|
||||
"index": "tsx src/cli/qmd.ts index",
|
||||
"vector": "tsx src/cli/qmd.ts vector",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user