Configuration options for creating a VFS Sandbox.
Initial files to populate the virtual file system.
Keys are file paths (relative to the VFS root), values are file contents.
The mount path for the virtual file system.
After mounting, files in the VFS will be accessible under this path
using the standard fs module.
Command timeout in milliseconds.
const options: VfsSandboxOptions = {
mountPath: "/vfs",
initialFiles: {
"/app/index.js": "console.log('Hello')",
"/app/package.json": '{"name": "test"}',
},
};initialFiles: {
"/src/index.js": "console.log('Hello')",
"/package.json": '{"name": "my-app"}',
}