for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import * as nAutoMetrics from '@financial-times/n-auto-metrics';
import setupMonitor from '../setup';
import monitor from '../operation';
describe('monitor', () => {
afterEach(() => {
jest.resetAllMocks();
jest
/** global: jest */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
});
const app = {
use: jest.fn(),
};
// const metrics = {};
// const logger = {};
it.skip('disable autoNext if it was set to false', () => {
it
/** global: it */
setupMonitor({ app, autoNext: false });
const targetOperation = () => {};
monitor(targetOperation);
expect(nAutoMetrics.compose.mock.calls).toMatchSnapshot();
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.