Skip to content

TypeScript API / laikacms/assets/testing / AssetsContractCase

Interface: AssetsContractCase ​

Properties ​

collectionFolder? ​

ts
optional collectionFolder?: string;

Optional folder prefix all keys are created under. Some impls require keys to live inside a configured collection. Defaults to 'uploads'.


makeRepo ​

ts
makeRepo: () => 
  | AssetsRepository
| Promise<AssetsRepository>;

Returns ​

| AssetsRepository | Promise<AssetsRepository>


name ​

ts
name: string;

skip? ​

ts
optional skip?: AssetsContractCapability[];

teardown? ​

ts
optional teardown?: () => void | Promise<void>;

Returns ​

void | Promise<void>

Released under the MIT License.