mirror of
https://github.com/nexu-io/open-design.git
synced 2026-09-20 06:15:06 +08:00
4b48f94b7c
* refactor(ci): align tools-pack sources with scope boundaries * refactor(tools-pack): unify test source imports * fix(tools-pack): resolve workspace root from package Generated-By: looper 0.11.2 (runner=fixer, agent=codex) * test(tools-pack): exercise bundled CLI directly --------- Co-authored-by: Looper <looper@noreply.github.com>
22 lines
696 B
TypeScript
22 lines
696 B
TypeScript
import { fileURLToPath } from "node:url";
|
|
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "node",
|
|
include: ["tests/**/*.test.ts"],
|
|
// These suites shell out to real packaging tools — 7z archive/extract,
|
|
// pnpm pack, installer assembly — against temp directories. Vitest's 5s
|
|
// default is close enough to their real cost that runner speed alone
|
|
// decides pass/fail: the Windows launcher payload archive test failed CI
|
|
// at 5007ms while passing locally and on faster runners.
|
|
testTimeout: 20_000,
|
|
},
|
|
});
|