<commit_before>var os = require('os');
var execNpm = require('../exec-npm');

describe('execNpm', function () {
    var cmd;

    it('should install "async" in temp dir', function (done) {
        cmd = [ 'install', 'async', '--prefix='+os.tmpdir() ];
        execNpm(cmd, done);
    });

    it('should uninstall "async" from temp dir', function (done) {
        cmd = [ 'uninstall', 'async', '--prefix='+os.tmpdir() ];
        execNpm(cmd, done);
    });

    it('should list the dependencies of the exec-npm module', function (done) {
        cmd = [ 'ls' ];<commit_msg>go easy on tests timing<commit_after>var os = require('os');
var execNpm = require('../exec-npm');

describe('execNpm', function () {
    this.timeout(5000);
    var cmd;

    it('should install "async" in temp dir', function (done) {
        cmd = [ 'install', 'async', '--prefix='+os.tmpdir() ];
        execNpm(cmd, done);
    });

    it('should uninstall "async" from temp dir', function (done) {
        cmd = [ 'uninstall', 'async', '--prefix='+os.tmpdir() ];
        execNpm(cmd, done);
    });

    it('should list the dependencies of the exec-npm module', function (done) {
        cmd = [ 'ls' ];
{'fraction_non_alphanumeric': 0.19152542372881357, 'fraction_numerical': 0.003389830508474576, 'mean_word_length': 2.897689768976898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5779388', 'n_tokens_mistral': 390, 'n_tokens_neox': 374, 'n_words': 105}