You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node test.js
/Users/lidean/github_project/viewDiffTools/test.js:2
const differencify = new Differencify(GlobalOptions);
^
ReferenceError: GlobalOptions is not defined
at Object.<anonymous> (/Users/lidean/github_project/viewDiffTools/test.js:2:39)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
And, here is my code
constDifferencify=require('differencify');constdifferencify=newDifferencify(GlobalOptions);(async()=>{awaitdifferencify.launchBrowser();awaitdifferencify.init().newPage().setViewport({width: 1600,height: 1200}).goto('https://github.com/NimaSoroush/differencify').waitFor(1000).screenshot().toMatchSnapshot().result((result)=>{console.log(result)// True or False}).close().end();awaitdifferencify.cleanup();})();
i get some troubles when try to run script...
And, here is my code
And, alreadly install dependencies
The text was updated successfully, but these errors were encountered: