mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 08:06:00 +00:00
3f26c45dd9
* refactored adapters to run test suites * fix bun version for tests * added missing adapter tests and refactored examples to use `bknd.config.ts` where applicable
16 lines
574 B
TypeScript
16 lines
574 B
TypeScript
import { describe, test, expect } from "bun:test";
|
|
import { StorageLocalAdapter } from "./StorageLocalAdapter";
|
|
// @ts-ignore
|
|
import { assetsPath, assetsTmpPath } from "../../../../__test__/helper";
|
|
import { adapterTestSuite } from "media/storage/adapters/adapter-test-suite";
|
|
import { bunTestRunner } from "adapter/bun/test";
|
|
|
|
describe("StorageLocalAdapter (bun)", async () => {
|
|
const adapter = new StorageLocalAdapter({
|
|
path: assetsTmpPath,
|
|
});
|
|
|
|
const file = Bun.file(`${assetsPath}/image.png`);
|
|
await adapterTestSuite(bunTestRunner, adapter, file);
|
|
});
|