jest/e2e/__tests__/autoClearMocks.test.ts

19 lines
512 B
TypeScript

/**
* 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';
test('suite with auto-clear', () => {
const result = runJest('auto-clear-mocks/with-auto-clear');
expect(result.exitCode).toBe(0);
});
test('suite without auto-clear', () => {
const result = runJest('auto-clear-mocks/without-auto-clear');
expect(result.exitCode).toBe(0);
});