/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import runJest from '../runJest';

describe('Correct BeforeAll run', () => {
  it('ensures the BeforeAll of ignored suite is not run', () => {
    let {stdout} = runJest('before-all-filtered');

    // for some reason Circus does not have the `Object` part
    stdout = stdout.replaceAll(/at Object.log \(/g, 'at log (');

    expect(stdout).toMatchSnapshot();
  });
});
