mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-26 10:38:40 +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("sandbox docker config", () => {
|
||||
it("accepts binds array in sandbox.docker config", async () => {
|
||||
vi.resetModules();
|
||||
const { validateConfigObject } = await import("./config.js");
|
||||
it("accepts binds array in sandbox.docker config", () => {
|
||||
const res = validateConfigObject({
|
||||
agents: {
|
||||
defaults: {
|
||||
@@ -38,9 +37,7 @@ describe("sandbox docker config", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("rejects non-string values in binds array", async () => {
|
||||
vi.resetModules();
|
||||
const { validateConfigObject } = await import("./config.js");
|
||||
it("rejects non-string values in binds array", () => {
|
||||
const res = validateConfigObject({
|
||||
agents: {
|
||||
defaults: {
|
||||
|
||||
Reference in New Issue
Block a user