observed behavior: Running require('neotest').run.run() from line 2 runs exactly 0 tests.
expected behavior: Running require('neotest').run.run() from line 2 should run all three tests, because they are all in the describe block.
Sticking to the example above: when running neotest.run.run() from the second line, it appears that the regex passed to jest's --testNamePattern flag is: "^aMethod". When it should be "^SomeClass aMethod" or something similar.
I would like to try and create a PR for this myself. but it might take some time. or not
With a testing setup such as the following:
observed behavior: Running
require('neotest').run.run()
from line 2 runs exactly 0 tests.expected behavior: Running
require('neotest').run.run()
from line 2 should run all three tests, because they are all in the describe block.Sticking to the example above: when running
neotest.run.run()
from the second line, it appears that the regex passed to jest's--testNamePattern
flag is:"^aMethod"
. When it should be"^SomeClass aMethod"
or something similar.I would like to try and create a PR for this myself.
but it might take some time.or not