非同期関数を呼び出している間のモカテストで、タイムアウトエラーを回避する方法:タイムアウトが2000msを超えました
私のノードアプリケーションでは、モカを使用してコードをテストしています。mochaを使用して多くの非同期関数を呼び出しているときに、タイムアウトエラー(Error: timeout of 2000ms exceeded.)が発生します。どうすればこれを解決できますか? var module = require('../lib/myModule'); var should = require('chai').should(); describe('Testing Module', function() { it('Save Data', function(done) { this.timeout(15000); var data = { a: 'aa', b: 'bb' }; module.save(data, function(err, res) { should.not.exist(err); done(); }); }); it('Get Data By Id', function(done) { var id = "28ca9"; module.get(id, …