matthewmueller / matthewmueller/component-test

Feature Request: Support Folders for Test Scripts

Open
#26 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
97
Forks
8
PR merge metrics
No merged PRs in 30d

Description

I've got a component with it's functionality distributed throughout lib. As such, my test directory has the same tree defined, where each test file matches 1-1 with lib.

Currently, the glob pattern is test/*.js, which of course doesn't traverse all my test files. Could we either change the glob pattern to be test/**/*.js? (or at least allow some way to configure that glob pattern externally?)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating where the test runner applies the test/*.js glob, then inspect how test files under the lib-matching directory tree are discovered. Update discovery to support nested test folders or an externally configurable glob, and verify that files such as test/**/*.js are included.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.