Add site definition worker inference
This commit is contained in:
parent
134157bc71
commit
3ccdaaf953
17 changed files with 250 additions and 50 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
import { setDefinitionPaused } from "../src/shared/settings";
|
||||
import { mergeSettings, setDefinitionPaused } from "../src/shared/settings";
|
||||
import { DEFAULT_SETTINGS } from "../src/shared/types";
|
||||
|
||||
describe("definition pause settings", () => {
|
||||
|
|
@ -18,3 +18,10 @@ describe("definition pause settings", () => {
|
|||
expect(settings.disabledDefinitionIds).toEqual(["mastodon"]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("legacy settings", () => {
|
||||
it("removes legacy inference settings", () => {
|
||||
expect(mergeSettings({ cpuThreads: 99 })).not.toHaveProperty("cpuThreads");
|
||||
expect(mergeSettings({ inferenceDevice: "webgpu" } as never)).not.toHaveProperty("inferenceDevice");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue