Gareth Jones

Results 157 issues of Gareth Jones

I tried this on WSL and was pleasantly surprised to find it works (I was expecting it to fail complaining about being unable to open Chrome, or make a GUI...

I didn't call this issue "do semantic version range parsing" b/c I don't know what's involved in that (i.e it could be really complex), but I think there could be...

enhancement

I realised this while doing #1191 and gosh is it a tough one: `prefer-expect-assertions` is currently checking if a function call is `expect.hasAssertions` or `expect.assertions` using non-scoped means: ``` const...

bug
rule: prefer-expect-assertions

This adds caching to _greatly_ reduce the cost of `parseJestFnCall` - currently most rules now sit around the 300-700ms mark, and this takes them down to about ~30ms (after the...

@SimenB the OS is included in the cache key, so currently we're only generating a cache for `ubuntu` even though we're running on MacOS & Windows too.

When I originally added our extension to `unbound-method`, I wanted to allow people to be able to enable it in shared ESLint configs themed around Jest rather than JavaScript or...

rule: unbound-method

Raised [in this comment](https://github.com/jest-community/eslint-plugin-jest/issues/1047#issuecomment-1030456417). I think we could get away with a basic check where we look for a loop (or `forEach`) either at the top level of a file...

Currently `require-hook` considers `const` valid to have outside of hooks and test methods; this is to allow this sort of code: ``` const { S3 } = require('@aws-sdk/client-s3'); const {...

question
rule: require-hook

We should be able to use type-powered checking to determine if an expected value is `PromiseLike` with enough accurate to make a rule of it. i.e ``` // fine await...

enhancement
new rule

The documentation for `toEqual` says this: > Note: `.toEqual` won't perform a deep equality check for two errors. Only the `message` property of an Error is considered for equality. It...

enhancement
new rule