📅  最后修改于: 2022-03-11 15:01:20.460000             🧑  作者: Mango
Try setting the jasmine.DEFAULT_TIMEOUT_INTERVAL in a beforeAll, since the timeout interval is reset for each it block:
describe("testing timeout", function() {
beforeAll(function() {
jasmine.DEFAULT_TIMEOUT_INTERVAL = 999999;
});
fit('should have custom timeout', function(){
console.log(jasmine.DEFAULT_TIMEOUT_INTERVAL); //prints 999999
});
})