Sha256: 333d3104193e8e0ab891a3e6c5401fb60b9abfd0578c2e404cc37f59be0de335

Contents?: true

Size: 825 Bytes

Versions: 7

Compression:

Stored size: 825 Bytes

Contents

var browserify = require('../');
var test = require('tap').test;
var path = require('path');

test('noParse array', function (t) {
    process.chdir(__dirname);
    
    t.plan(2);
    
    var actual = [];
    var expected = [
        'noparse/a.js',
        'noparse/b.js',
        'noparse/dir1/1.js',
        'noparse/node_modules/robot/main.js'
    ].map(function (x) {return path.resolve(x);}).sort();
    
    var b = browserify({
        entries: [ __dirname + '/noparse/a.js' ],
        noParse: [
            __dirname + '/noparse/dir1/1.js',
            __dirname + '/noparse/node_modules/robot/main.js'
        ]
    });
    b.on('dep', function(dep) { actual.push(dep.file); });
    b.bundle(function (err, src) {
        actual.sort();
        t.ifError(err);
        t.deepEqual(actual, expected);
    });
});

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
minimum_viable_product-0.0.11 test/dummy/node_modules/browserify/test/noparse.js
brwy_rails-0.0.6 test/dummy/node_modules/browserify/test/noparse.js
brwy_rails-0.0.5 test/dummy/node_modules/browserify/test/noparse.js
brwy_rails-0.0.4 test/dummy/node_modules/browserify/test/noparse.js
brwy_rails-0.0.3 test/dummy/node_modules/browserify/test/noparse.js
brwy_rails-0.0.2 test/dummy/node_modules/browserify/test/noparse.js
brwy_rails-0.0.1 test/dummy/node_modules/browserify/test/noparse.js