test(shared): update shared utility tests
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
import { afterAll, afterEach, beforeEach, describe, expect, it, mock, spyOn } from "bun:test"
|
||||
import type { LegacyPluginCheckResult } from "./legacy-plugin-warning"
|
||||
import { logLegacyPluginStartupWarning } from "./log-legacy-plugin-startup-warning"
|
||||
|
||||
function createLegacyPluginCheckResult(
|
||||
overrides: Partial<LegacyPluginCheckResult> = {},
|
||||
@@ -26,8 +25,7 @@ afterAll(() => {
|
||||
})
|
||||
|
||||
async function importFreshStartupWarningModule(): Promise<typeof import("./log-legacy-plugin-startup-warning")> {
|
||||
consoleWarnSpy = spyOn(console, "warn").mockImplementation(() => {})
|
||||
return { logLegacyPluginStartupWarning }
|
||||
return import(`./log-legacy-plugin-startup-warning?test=${Date.now()}-${Math.random()}`)
|
||||
}
|
||||
|
||||
describe("logLegacyPluginStartupWarning", () => {
|
||||
|
||||
Reference in New Issue
Block a user