feat: fuzzy name matcher
- feat: migrate biome to oxc
This commit is contained in:
@@ -2,7 +2,9 @@ import { afterEach, beforeEach, describe, expect, it } from "bun:test";
|
||||
import { mkdir, mkdtemp, rm } from "node:fs/promises";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
|
||||
import { file, hash } from "bun";
|
||||
|
||||
import { AssetManager } from "@/lib/assets";
|
||||
|
||||
describe("AssetManager", () => {
|
||||
|
||||
+6
-2
@@ -1,11 +1,15 @@
|
||||
import { beforeAll, describe, expect, it } from "bun:test";
|
||||
|
||||
import type { pm, InvalidKey as ik } from "@/lib/auth";
|
||||
type PermissionManager = typeof pm;
|
||||
type InvalidKey = typeof ik;
|
||||
|
||||
describe("PermissionManager", () => {
|
||||
const PUBLIC_API_KEY = "public-key";
|
||||
const PRIVATE_API_KEY = "private-key";
|
||||
|
||||
let pm: typeof import("@/lib/auth")["pm"];
|
||||
let InvalidKey: typeof import("@/lib/auth").InvalidKey;
|
||||
let pm: PermissionManager;
|
||||
let InvalidKey: InvalidKey;
|
||||
|
||||
beforeAll(async () => {
|
||||
// Ensure the module reads our test keys when it validates the key list.
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { describe, expect, it } from "bun:test";
|
||||
|
||||
import { Deduplicator } from "@/lib/dedupe";
|
||||
|
||||
describe("Deduplicator", () => {
|
||||
|
||||
Reference in New Issue
Block a user