fix: seeder

This commit is contained in:
Nathnael
2026-08-03 11:58:33 +00:00
parent f103b51de5
commit 72532f36cd
3 changed files with 39 additions and 26 deletions

View File

@@ -143,7 +143,11 @@ function up() {
}
}
const [cmd, ...extra] = process.argv.slice(2);
const [cmd, ...rawExtra] = process.argv.slice(2);
// `pnpm it:test -- src/foo.it.ts` hands us a literal "--" first. Forwarding it
// makes vitest treat everything after it as CLI options and ignore the file
// filter — the "one file" run silently becomes the whole suite.
const extra = rawExtra[0] === "--" ? rawExtra.slice(1) : rawExtra;
switch (cmd) {
case "up":