corvid-local-testkit
corvid-local-testkit
npm i corvid-local-testkit
corvid-local-testkit

corvid-local-testkit

Download your Wix site, code in a local IDE, collaborate, use git, and more!

by wix-incubator

0.2.12 (see all)License:ISCTypeScript:Not Found
npm i corvid-local-testkit
Readme

Corvid Local Testkit

This test kit exposes the localMode express server and drivers to the local file system

Example

Clone Mode:

const {server, localSite} = require('corvid-local-testkit')

const cloneLocalSiteDriver = await localSite.init()
const cloneLocalServerDriver = await server.startInCloneMode(cloneLocalSiteDriver)

Edit Mode:

const {server, localSite} = require('corvid-local-testkit')

/*
* first you need to get valid local files (clone command)
*/

const cloneLocalSiteDriver = await localSite.init()
const cloneLocalServerDriver = await server.startInCloneMode(cloneLocalSiteDriver)


const localFiles = await cloneLocalSiteDriver.getFiles()

const editLocalSiteDriver = await localSite.init(localFiles)
const editLocalServerDriver = await server.startInEditMode(editLocalSiteDriver)

Downloads/wk

38

GitHub Stars

38

LAST COMMIT

1yr ago

MAINTAINERS

11

CONTRIBUTORS

16

OPEN ISSUES

25

OPEN PRs

6
VersionTagPublished
0.2.12
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate