import * as Archiver from 'archiver';
import * as path from 'path';
import { Logger } from '../lib/Logger';
import { ModuleBundler } from '../ModuleBundler';

describe('ModuleBundler', () => {
  const servicePath = path.resolve(__dirname, '../../test/1.0');

  jasmine.DEFAULT_TIMEOUT_INTERVAL = 31000;

  const artifact = Archiver('zip', { store: true });
  const moduleBundler = new ModuleBundler({
    servicePath,
    logger: new Logger(),
    archive: artifact,
  });

  const { dependencies } = require(`${servicePath}/package.json`);

  beforeAll(async () => {
    await moduleBundler.bundle({});
  });

  Object.keys(dependencies).forEach((dep) => {
    it(`Has bundled dependency ${dep}`, async () => {
      expect(
        moduleBundler.modules.some(({ name }) => name === dep),
      ).toBeTruthy();
    });
  });
});

import * as Archiver from 'archiver';
import * as path from 'path';
import { Logger } from '../lib/Logger';
import { ModuleBundler } from '../ModuleBundler';

describe('ModuleBundler', () => {
  const servicePath = path.resolve(__dirname, '../../test/1.0');

  const artifact = Archiver('zip', { store: true });
  const moduleBundler = new ModuleBundler({
    servicePath,
    logger: new Logger(),
    archive: artifact,
  });

  const { dependencies } = require(`${servicePath}/package.json`);

  beforeAll(async () => {
    await moduleBundler.bundle({});
  });

  Object.keys(dependencies).forEach((dep) => {
    it(`Has bundled dependency ${dep}`, async () => {
      expect(
        moduleBundler.modules.some(({ name }) => name === dep),
      ).toBeTruthy();
    });
  });
});

--- 
+++ 
@@ -5,6 +5,8 @@
 
 describe('ModuleBundler', () => {
   const servicePath = path.resolve(__dirname, '../../test/1.0');
+
+  jasmine.DEFAULT_TIMEOUT_INTERVAL = 31000;
 
   const artifact = Archiver('zip', { store: true });
   const moduleBundler = new ModuleBundler({
Set jasmine timeout cus travis
