Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions vitest.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ export default defineConfig({
include: ["**/*.test.ts"],
exclude: ["**/node_modules/**", "**/build/**"],
globals: true,
// Mirrors the `test:unit` npm script so tests run with NODE_ENV=unit no matter how they're launched (CLI, IDE/Vitest extension). Code under test (e.g. ssh.ts) skips process-exiting side effects when NODE_ENV === "unit".
// TODO we should fix the unit tests to not set NODE_ENV and when we do we can remove this
env: { NODE_ENV: "unit" },
},
});
Loading