Prune notes that don't apply to bot-agents and keep aliases on direct src subfolders
Check / check (pull_request) Successful in 38s
Check / check (pull_request) Successful in 38s
This commit is contained in:
@@ -3,7 +3,7 @@ import { fileURLToPath } from "node:url";
|
||||
|
||||
import { expect, test } from "vite-plus/test";
|
||||
|
||||
import { output } from "#testing";
|
||||
import { runCommand } from "#testing";
|
||||
|
||||
// Each phase runs as `node src/<phase>.ts` with no build step. Node loads the
|
||||
// whole import graph, stripping types, before the phase reads its first
|
||||
@@ -16,12 +16,7 @@ const PHASES: [phase: string, firstVariable: string][] = [
|
||||
|
||||
test.each(PHASES)("Node loads the %s phase", async (phase, firstVariable) => {
|
||||
const path = fileURLToPath(new URL(`../src/${phase}.ts`, import.meta.url));
|
||||
const result = await output(process.execPath, {
|
||||
args: [path],
|
||||
env: { PATH: process.env.PATH ?? "" },
|
||||
clearEnv: true,
|
||||
stdin: "null",
|
||||
});
|
||||
const result = await runCommand(process.execPath, [path], { PATH: process.env.PATH ?? "" });
|
||||
expect(result.success).toBe(false);
|
||||
expect(new TextDecoder().decode(result.stderr)).toContain(`${firstVariable} is not set`);
|
||||
expect(result.stderr).toContain(`${firstVariable} is not set`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user