neotest-jest icon indicating copy to clipboard operation
neotest-jest copied to clipboard

Support extra_args

Open MisanthropicBit opened this issue 11 months ago • 0 comments

This PR adds support for neotest.RunArgs.extra_args passed to build_spec for adding additional arguments to the test process via neotest.run.run.

An example use case is running tests and updating snapshots:

require("neotest").run.run({ extra_args = { "--updateSnapshots" } })

Other changes

  • I fixed the is_test_file tests that weren't run asynchronously but was calling async functions.
  • Updated tests after path escaping in #109. I'm not sure why they were passing before. There is also no test output from the test script in github actions so there might be something amiss with the setup.

MisanthropicBit avatar Mar 08 '24 22:03 MisanthropicBit