How to use the test.print function in test

To help you get started, we’ve selected a few test examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github montagejs / mr / test / spec / identify / program.js View on Github external
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");
github montagejs / mr / test / spec / browser-alternatives / program.js View on Github external
var test = require("test");
require("shimmy");
test.print('DONE', 'info');
github montagejs / mr / test / spec / overlay / program.js View on Github external
.then(function (packageRequire) {
    test.assert(packageRequire.packageDescription.pass === 10, "overlay applied")
    test.print("DONE", "info");
});
github montagejs / mr / test / compiler-package / program.js View on Github external
var test = require("test");
var hello = require("./hello.text");
test.assert(hello === 'Hello, World!\n');
test.print("DONE", "info");
github montagejs / mr / test / translator-package / program.js View on Github external
var test = require("test");
var hello = require("./hello.text");
test.assert(hello === 'Hello, World!\n');
test.print("DONE", "info");

test

Node.js 18's node:test, as an npm package

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis