About
Provides in memory implementation of File Sharing Server. Under the hood uses Express.
Usage
import {FileSharingServerExpressTestkit} from 'file-sharing-testkit-js';
const options = {
port: 9001
};
const testkit = new FileSharingServerExpressTestkit();
await testkit.start();
testkit.getRootUrl(); // Returns http://localhost:9001 for default port
await testkit.stop();
Test Domain
Testkit provides some helpers to build request objects for simple use cases
import {anAppSettings} from 'file-sharing-testkit-js';
anAppSettings(); // Returns object of type wix.filesharing.api.v1.AppSettings