Comments (2)
Is there a reason why you're running this rule against your file if you have this custom extension? I'm not against adjusting the options to make the rule more flexible, but would like to understand more of your use-case first since I'm not sure why (or how) you'd want mix test cases with this (which is really when the result is needed - even if you're using things like jest.mock
next to this, you can probably still safely disable require-hook
)
from eslint-plugin-jest.
Yeah, I could disable this per-file in the config, that's true... I could also use disable comments. However, I expect to have more tests in more files that do not all use the class, so specifying which files to apply the rule to and which not would be a kind of pain...
Also you may want to use such a tester and then add some more tests manually in the same file, in which case you really have to use disable comments - I am not sure I'll be in such a scenario, but it's another option that comes to mind...
from eslint-plugin-jest.
Related Issues (20)
- Unknown package installing eslint-plugin-jest HOT 2
- [valid-expect] `minmum` is perhaps `maxmum` HOT 4
- [valid-title] static class string name property not allowed HOT 1
- Plugin is preventing upgrades to `@typescript-eslint` packages HOT 5
- Support ESLint "flat" configs HOT 8
- Feature Request: Extend ESLint Plugin Jest for Custom Test and Describe Function Recognition HOT 3
- New rule to prevent to use `expect(query*(...)).toBeDefined();` HOT 2
- New rule to forbid to use `expect(find*(...)).toBeTruthy();` HOT 2
- Feature Request: Make this plugin work with bun HOT 7
- eslint-plugin-node is obsolete HOT 1
- `no-focused-tests` should highlight only `fit` and `fdescribe` instead of the whole thing HOT 4
- Feature: Generate typings for rules etc. HOT 4
- [new-rule] Force to use `jest.mocked(fn)` instead of `fn as jest.Mock` HOT 1
- Results of weekly scheduled smoke test HOT 5
- [expect-expect and no-standalone-expect] `additionalTestBlockFunctions` does not recognize `test.each`-like functions HOT 3
- [no-test-return-statement] does not trigger for arrow functions without a body HOT 3
- Add support for `typescript-eslint` v7 HOT 4
- Is `environments.globals` misconfigured? HOT 15
- [max-expects] does not reset counter with fakeAsync in angular HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-jest.