TypeScript API / laikacms/storage/testing / StorageContractCase
Interface: StorageContractCase
Properties
missingFolderBehavior
ts
missingFolderBehavior:
| MissingFolderBehaviors
| MissingFolderBehavior;How listing a nonexistent folder behaves for this backend, per method. See MissingFolderBehavior. Most backends use the same value for both methods; pass a bare MissingFolderBehavior as shorthand for that.
name
ts
name: string;Human-readable name shown in test output.
skip?
ts
optional skip?: StorageContractCapability[];Capabilities to skip (not supported by this backend).
Methods
makeRepo()
ts
makeRepo(): Promise<StorageRepository>;Return a fully-constructed, ready-to-use repository instance.
Returns
Promise<StorageRepository>
teardown()?
ts
optional teardown(): Promise<void>;Optional cleanup hook called after all contract tests finish.
Returns
Promise<void>