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

Fix testMatch to find test files correctly #71

Merged
merged 2 commits into from
May 1, 2019
Merged

Fix testMatch to find test files correctly #71

merged 2 commits into from
May 1, 2019

Conversation

bastibuck
Copy link
Contributor

@bastibuck bastibuck commented May 1, 2019

The problem occured in #62 and seems to come from this part: ?(*.). Should fix #62
Applying the changes in this PR finds the files correctly and runs tests for .ts and .tsx files inside root and subfolders within /test/.

Can't check if this still works on other OS than Windows though.

PS C:\dev\hidash> npm test

> [email protected] test C:\dev\hidash
> tsdx test

 PASS  test/blah.test.ts
 PASS  test/fix/make.test.tsx

Test Suites: 2 passed, 2 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        3.362s
Ran all test suites.

The problem occured in #62 and seems to come from this part: `?(*.)`.
Applying the changes in this PR finds the files correctly and runs tests for `.ts` and `.tsx` files inside root and subfolders within `/test/`.

Can't check if this still works on other OS than Windows though. 

```
PS C:\dev\hidash> npm test

> [email protected] test C:\dev\hidash
> tsdx test

 PASS  test/blah.test.ts
 PASS  test/fix/make.test.tsx

Test Suites: 2 passed, 2 total
Tests:       2 passed, 2 total
Snapshots:   0 total
Time:        3.362s
Ran all test suites.
```
@jaredpalmer jaredpalmer changed the title fix testMatch to find test files correctly Fix testMatch to find test files correctly May 1, 2019
@jaredpalmer jaredpalmer merged commit a2365db into jaredpalmer:master May 1, 2019
@agilgur5
Copy link
Collaborator

@allcontributors please add @bastibuck for code, bug

@allcontributors
Copy link
Contributor

@agilgur5

I've put up a pull request to add @bastibuck! 🎉

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.

No tests found - exit code 1
3 participants