Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var test = require("test");
// ensure relevant packages are loaded
require("x/x");
require("cyclic/module");
var xRequire = require.getPackage({name: "x"});
test.assert(require.identify('z', xRequire) === 'x/z');
test.print("DONE", "info");
var test = require("test");
require("shimmy");
test.print('DONE', 'info');
.then(function (packageRequire) {
test.assert(packageRequire.packageDescription.pass === 10, "overlay applied")
test.print("DONE", "info");
});
var test = require("test");
var hello = require("./hello.text");
test.assert(hello === 'Hello, World!\n');
test.print("DONE", "info");
var test = require("test");
var hello = require("./hello.text");
test.assert(hello === 'Hello, World!\n');
test.print("DONE", "info");