jest/no-jasmine-globals Style
What it does
This rule reports on any usage of Jasmine globals, which is not ported to Jest, and suggests alternatives from Jest's own API.
Example
javascript
jasmine.DEFAULT_TIMEOUT_INTERVAL = 5000;
test("my test", () => {
pending();
});
test("my test", () => {
jasmine.createSpy();
});
How to use
To enable this rule in the CLI or using the config file, you can use:
bash
oxlint --deny jest/no-jasmine-globals --jest-plugin
json
{
"plugins": ["jest"],
"rules": {
"jest/no-jasmine-globals": "error"
}
}