mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-04 21:19:29 +08:00
0e54ea1177
* chore: added cypresss * chore: added sidebar tests * chore: script update * chore: removed cypress examples * chore: added lib to eslintignore * chore: script fixes * chore: updated the snapshot
14 lines
365 B
JavaScript
14 lines
365 B
JavaScript
const path = require('path')
|
|
const LiveServer = require('live-server')
|
|
|
|
const fixturePath = path.join(__dirname, './fixtures/docs')
|
|
const args = process.argv.slice(2)
|
|
console.log('[e2e tests] : args passed to live server', args)
|
|
const params = {
|
|
port: args[0] || 3000,
|
|
root: args[1] || fixturePath,
|
|
open: false
|
|
// NoBrowser: true
|
|
}
|
|
LiveServer.start(params)
|