https://github.com/amiel/teenytest-glob-issue
This is a runnable example to demonstrate testdouble/teenytest#38
https://github.com/amiel/teenytest-glob-issue
Last synced: 8 months ago
JSON representation
This is a runnable example to demonstrate testdouble/teenytest#38
- Host: GitHub
- URL: https://github.com/amiel/teenytest-glob-issue
- Owner: amiel
- Created: 2018-07-17T20:20:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T20:34:37.000Z (almost 8 years ago)
- Last Synced: 2024-10-03T12:33:06.281Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a runnable example to demonstrate [testdouble/teenytest#38](https://github.com/testdouble/teenytest/issues/#38).
## Running this
To run this, clone this gist, install dependencies, and run the tests with `npm test`
```shell
git clone https://github.com/amiel/teenytest-glob-issue
cd teenytest-glob-issue
npm install
npm test
```
## Expected result
I expected teenytest to run both `example-1.test.js` and `example_2.test.js`.
## Actual Result
With these files, teenytest only runs `example_2.test.js`, and not
`example-1.test.js`.
```
> teenytest-glob-issue-example@0.0.0 test /Users/amiel/src/experiments/teenytest-glob
> teenytest test/**/*.test.js
TAP version 13
1..1
ok 1 - test #1 in `test/lib/example_2.test.js`
# Test run passed!
# Passed: 1
# Failed: 0
# Total: 1
```