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

feat: add option to skip dependency check #137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

moharifhidayat7
Copy link

@moharifhidayat7 moharifhidayat7 commented Jan 7, 2025

Problem
In some projects, frameworks include Jest as part of their own testing package. As a result, Jest is not listed in the project's dependencies or devDependencies in the package.json file. This causes the current dependency check in neotest-jest to fail, as it relies on detecting Jest in the package.json to determine if the project has jest installed.

This pull request introduces a new feature to the neotest-jest adapter, allowing users to skip the dependency check for Jest. The most important changes include the addition of a new field to the adapter, modifications to the hasJestDependency function, and updates to the adapter initialization to support the new option.

Changes to support skipping dependency check:

Example Usage

require('neotest-jest')({
    skipDependencyCheck = true,
    -- Other options...
})

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

Successfully merging this pull request may close these issues.

1 participant