jest-codemods
jest-codemods copied to clipboard
Mocha migration this.timeout and this.slow
Mocha allows configuration of test timeout and warning about test slowness. These functions are not migrated, causing runtime errors in jest:
describe('test', function() {
this.timeout(10000);
…
});
@pornel thanks for reporting this.
Not sure what this should be changed to. Modifying global jasmine timeout probably isn't what the user want... So I guess adding a warning would be a good start.
Removing/commenting out would be fine IMHO.