Closed MisanthropicBit closed 1 year ago
As discussed in #1, this PR adds the ability to configure the file extensions for test files. I also added a utility function create_test_file_extensions_matcher for easily creating a matcher from a set of file extensions as in:
create_test_file_extensions_matcher
local neotest = require('neotest') local mocha_util = require('neotest-mocha.util') neotest.setup({ is_test_file = mocha_util.create_test_file_extensions_matcher( { 'spec', 'test' }, { 'js', 'mjs', 'cjs', 'jsx', 'coffee', 'ts', 'tsx' } ), })
@adrigzr Did you have a chance to look at this?
@MisanthropicBit sorry! Didn't get a notification for this. Looks good to me :) Thanks for your contribution.
No problem, thanks for getting back to me :)
As discussed in #1, this PR adds the ability to configure the file extensions for test files. I also added a utility function
create_test_file_extensions_matcher
for easily creating a matcher from a set of file extensions as in: