UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

21 lines (14 loc) 584 B
// just `require('siesta-lite')` in your app let Siesta = require('../../index.js') let project = new Siesta.Project.NodeJS() project.configure({ title : 'Awesome NodeJS test suite', // uncomment for speedup - tests will share the same Node process // (by default every test runs in separate Node process) // Tests should not "pollute" the global namespace // sandbox : false, // uncomment to enable the detection of leaking globals // autoCheckGlobals : true }) project.planDirectory(__dirname) project.start()