shared_symlink.js 653 B

1234567891011121314151617
  1. // https://github.com/substack/node-browserify/issues/1325
  2. var browserify = require('../');
  3. var vm = require('vm');
  4. var test = require('tap').test;
  5. test('shared symlink', { skip: process.platform === 'win32' }, function (t) {
  6. t.plan(1);
  7. var b = browserify(__dirname + '/shared_symlink/main.js');
  8. b.bundle(function (err, src) {
  9. // does the same thing as node: crashes
  10. t.equal(err.message, "Can't walk dependency graph: Cannot find module 'foo' "
  11. + "from '" + __dirname + "/shared_symlink/shared/index.js'\n"
  12. + " required by " + __dirname + "/shared_symlink/shared/index.js"
  13. );
  14. });
  15. });