Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if import came from jest #1081

Closed
waynevanson opened this issue Apr 15, 2022 · 1 comment
Closed

Check if import came from jest #1081

waynevanson opened this issue Apr 15, 2022 · 1 comment

Comments

@waynevanson
Copy link

Related to #556

I'm writing a property based testing library and I want to test a function called test.
I import it and use it in a test, the eslint rules do not recognize that this is non jest import.

import { test } from "./test-fn"

describe(test, () =>{
  it("should do something good", () => {
    // two errors:
    //
    // Test is missing function arguments `eslint jest/no-disabled-tests`
    // Test has no assertions `eslint jest/expect-expect`
    expect(test({})).toBeDefined()
  })
})

This code base looks neat, great work!

Happy to contribute if this feature is ready to be worked on.

@G-Rath
Copy link
Collaborator

G-Rath commented Apr 15, 2022

Yeah this is a duplicate of #556 - feel free to take a whack at it if you like (I've been meaning to but haven't had the time)

@G-Rath G-Rath closed this as completed Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants