test: avoid more filter allocation assertions

This commit is contained in:
Peter Steinberger
2026-05-08 21:33:48 +01:00
parent 70723b306d
commit a899f81921
4 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ const repoRoot = path.resolve(import.meta.dirname, "..");
type PluginNpmRuntimeBuildPlan = NonNullable<ReturnType<typeof resolvePluginNpmRuntimeBuildPlan>>;
function expectDistRelativePaths(paths: string[]) {
expect(paths.filter((entry) => !entry.startsWith("./dist/"))).toEqual([]);
expect(paths.every((entry) => entry.startsWith("./dist/"))).toBe(true);
}
function expectPluginNpmRuntimeBuildPlan(