test.js 881 B

12345678910111213141516171819202122
  1. // Cleanup the uncaughtException added by the tmp module
  2. // It messes with the mocha uncaughtException event to caught errors
  3. // Please note that is the Resolver that calls tmp.setGracefulCleanup()
  4. // so we need to require that before
  5. require('../lib/core/resolvers/Resolver');
  6. process.removeAllListeners('uncaughtException');
  7. require('./core/resolvers/resolver');
  8. require('./core/resolvers/urlResolver');
  9. require('./core/resolvers/fsResolver');
  10. require('./core/resolvers/gitResolver');
  11. require('./core/resolvers/gitFsResolver');
  12. require('./core/resolvers/gitRemoteResolver');
  13. require('./core/resolvers/gitHubResolver');
  14. require('./core/resolvers/svnResolver');
  15. require('./core/resolverFactory');
  16. require('./core/resolveCache');
  17. require('./core/packageRepository');
  18. require('./core/scripts');
  19. require('./core/Manager');
  20. require('./commands/index.js');
  21. require('./util/index.js');