jest-codemods icon indicating copy to clipboard operation
jest-codemods copied to clipboard

Mocha migration this.timeout and this.slow

Open kornelski opened this issue 7 years ago • 2 comments

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);
    …
});

kornelski avatar May 21 '17 23:05 kornelski

@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.

skovhus avatar Jun 05 '17 11:06 skovhus

Removing/commenting out would be fine IMHO.

kornelski avatar Jun 05 '17 13:06 kornelski