Closed brick9527 closed 1 year ago
When I write a mocha test script, it shows an error with no-valid-this
no-valid-this
test demo:
describe('my title', () => { it('test something', () => { this.timeout(1000); // do something... }); });
mocha timeout refference: https://mochajs.org/#timeouts
You can turn off no-invalid-this in your eslintrc file. Alternatively, a better approach would be to use "override" to make it effective only in */.test.js files.
no-invalid-this
When I write a mocha test script, it shows an error with
no-valid-this
test demo:
mocha timeout refference: https://mochajs.org/#timeouts