vitest.setup.js
1 /** 2 * Copyright 2025 Defense Unicorns 3 * SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial 4 */ 5 6 import { K8s, kind } from 'pepr'; 7 8 export async function setup() { 9 await K8s(kind.Namespace).Apply({ 10 metadata: { 11 name: "policy-tests", 12 labels: { 13 "istio-injection": "disabled", 14 "zarf.dev/agent": "ignore", 15 }, 16 }, 17 }); 18 } 19 20 export async function teardown() { 21 await K8s(kind.Namespace).Delete("policy-tests"); 22 }