mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 07:42:44 +00:00
perf(test): reduce test startup overhead
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { validateConfigObject } from "./config.js";
|
||||
|
||||
describe("gateway.tools config", () => {
|
||||
it("accepts gateway.tools allow and deny lists", async () => {
|
||||
vi.resetModules();
|
||||
const { validateConfigObject } = await import("./config.js");
|
||||
it("accepts gateway.tools allow and deny lists", () => {
|
||||
const res = validateConfigObject({
|
||||
gateway: {
|
||||
tools: {
|
||||
@@ -15,9 +14,7 @@ describe("gateway.tools config", () => {
|
||||
expect(res.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("rejects invalid gateway.tools values", async () => {
|
||||
vi.resetModules();
|
||||
const { validateConfigObject } = await import("./config.js");
|
||||
it("rejects invalid gateway.tools values", () => {
|
||||
const res = validateConfigObject({
|
||||
gateway: {
|
||||
tools: {
|
||||
|
||||
Reference in New Issue
Block a user