Sha256: 7a13884a785edac143b89534443c8497d6b74cb834deb1b786d87889cd8d63b4

Contents?: true

Size: 575 Bytes

Versions: 9

Compression:

Stored size: 575 Bytes

Contents

// runs before each test to make sure console.error output will
// fail a test (i.e. default PropType missing). Check the error
// output and traceback for actual error.
global.console.error = (error, stack) => {
  /* eslint-disable-next-line no-console */
  if (stack) console.log(stack); // Prints out original stack trace
  throw new Error(error);
};

// Increase jest timeout as some tests using multiple http mocks can time out on CI systems.
jest.setTimeout(process.env.JEST_TIMEOUT || 15000);

afterAll(() => {
  jest.resetModules();
  if (global.gc) global.gc();
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-4.4.2.2 webpack/global_test_setup.js
katello-4.4.2.1 webpack/global_test_setup.js
katello-4.4.2 webpack/global_test_setup.js
katello-4.4.1 webpack/global_test_setup.js
katello-4.4.0.2 webpack/global_test_setup.js
katello-4.4.0.1 webpack/global_test_setup.js
katello-4.4.0 webpack/global_test_setup.js
katello-4.4.0.rc2 webpack/global_test_setup.js
katello-4.4.0.rc1 webpack/global_test_setup.js