Repository URL to install this package:
|
Version:
0.0.6 ▾
|
jest.mock('../tester');
jest.mock('../utils');
const tester = require('../tester');
const utils = require('../utils');
describe('index.js', () => {
it('runs the tests that have been found in the project folder', () => {
console.log = jest.fn();
jest.spyOn(tester, 'runTests');
jest.spyOn(utils, 'setupReportDirectory');
require('../index');
expect(utils.setupReportDirectory).toHaveBeenCalled();
expect(tester.runTests)
.toHaveBeenCalledWith([
expect.objectContaining({ id: 'fakeTestA11yFile' }),
expect.objectContaining({ id: 'fakeTestFile' })
]);
});
});