Files
nexu-io__open-design/tools/pack/vitest.config.ts
PerishFire 4b48f94b7c refactor(ci): align tools-pack sources with scope boundaries (#7230)
* 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>
2026-08-21 07:56:48 +00:00

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,
},
});