mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-09 05:16:06 +10:00
preperation to run the code in nodejs
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
require = require('esm')(module/*, options*/)
|
||||
const {JSDOM} = require('jsdom')
|
||||
const dom = new JSDOM('<!DOCTYPE html><body></body>')
|
||||
|
||||
global.window = dom.window
|
||||
global.document = dom.window.document
|
||||
global.navigator = dom.window.navigator
|
||||
global.location = dom.window.location
|
||||
|
||||
require('../src/core')
|
||||
Reference in New Issue
Block a user