From 007fb0458e7880f2b31a04d5c8f867089c439126 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 23 Apr 2026 10:27:28 +0100 Subject: [PATCH] perf(test): speed up secrets and mattermost lanes --- extensions/mattermost/channel-plugin-api.test.ts | 15 ++++++--------- test/vitest/vitest.secrets.config.ts | 1 - 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/extensions/mattermost/channel-plugin-api.test.ts b/extensions/mattermost/channel-plugin-api.test.ts index da3cc13f74c..13c525778e1 100644 --- a/extensions/mattermost/channel-plugin-api.test.ts +++ b/extensions/mattermost/channel-plugin-api.test.ts @@ -1,14 +1,11 @@ import { describe, expect, it } from "vitest"; -import { runDirectImportSmoke } from "../../test/helpers/plugins/direct-smoke.js"; describe("mattermost bundled api seam", () => { - it("loads the narrow channel plugin api in direct smoke", async () => { - const stdout = await runDirectImportSmoke( - 'const mod = await import("./extensions/mattermost/channel-plugin-api.ts"); process.stdout.write(JSON.stringify({keys:Object.keys(mod).sort(), id: mod.mattermostPlugin.id, setupId: mod.mattermostSetupPlugin.id}));', - ); + it("loads the narrow channel plugin api", async () => { + const mod = await import("./channel-plugin-api.js"); - expect(stdout).toBe( - '{"keys":["mattermostPlugin","mattermostSetupPlugin"],"id":"mattermost","setupId":"mattermost"}', - ); - }, 45_000); + expect(Object.keys(mod).toSorted()).toEqual(["mattermostPlugin", "mattermostSetupPlugin"]); + expect(mod.mattermostPlugin.id).toBe("mattermost"); + expect(mod.mattermostSetupPlugin.id).toBe("mattermost"); + }); }); diff --git a/test/vitest/vitest.secrets.config.ts b/test/vitest/vitest.secrets.config.ts index 3367587c736..dc583872ec9 100644 --- a/test/vitest/vitest.secrets.config.ts +++ b/test/vitest/vitest.secrets.config.ts @@ -5,7 +5,6 @@ export function createSecretsVitestConfig(env?: Record