You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default timeout for tests is 6 seconds. In case you need to apply a different timeout, that can be done in the test file using using this.timeout(milliseconds) in the define, after, before or it -blocks.
I'm trying the extent the timeout but keep getting TypeError: this.timeout is not a function. Are the docs out of date?
'use strict';// tests for mapServicePrint// Generated by serverless-mocha-pluginconstmod=require('../handlers.js');constmochaPlugin=require('serverless-mocha-plugin');constlambdaWrapper=mochaPlugin.lambdaWrapper;constexpect=mochaPlugin.chai.expect;constwrapped=lambdaWrapper.wrap(mod,{handler: 'print'});describe('mapServicePrint',()=>{before((done)=>{// lambdaWrapper.init(liveFunction); // Run the deployed lambdadone();});it('should return 200',(done)=>{this.timeout(30000);// <--- ******returnwrapped.run({}).then((response)=>{expect(response.statusCode).to.be.equal(200);expect(response).to.not.be.empty;done();});});});
The text was updated successfully, but these errors were encountered:
The default timeout for tests is 6 seconds. In case you need to apply a different timeout, that can be done in the test file using using this.timeout(milliseconds) in the define, after, before or it -blocks.
I'm trying the extent the timeout but keep getting
TypeError: this.timeout is not a function
. Are the docs out of date?The text was updated successfully, but these errors were encountered: