Jest can provide a function in the test that can be used to work with callbacks. The following is the syntax:

it("does the one async thing", done => {
	myCallbackFunction(() => {
		done();
	});
});