jest/e2e/json-reporter/__tests__/sum.test.js

30 lines
582 B
JavaScript

/**
* 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.
*/
'use strict';
const sum = require('../sum');
it('no ancestors', () => {
expect(true).toBeTruthy();
});
describe('sum', () => {
it('adds numbers', () => {
expect(sum(1, 2)).toBe(3);
});
describe('failing tests', () => {
it('fails the test', () => {
expect(sum(1, 2)).toBe(4);
});
});
it.skip('skipped test', () => {
expect(sum(1, 2)).toBe(3);
});
});