面试题答案
一键面试// 假设asyncFunction定义在asyncFunction.js文件中
const asyncFunction = require('./asyncFunction');
describe('asyncFunction', () => {
test('should return a value greater than 10', async () => {
const result = await asyncFunction();
expect(result).toBeGreaterThan(10);
});
});