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

yarn test:integration 'No tests found' on Windows #22

Open
cdpython opened this issue Feb 7, 2019 · 0 comments
Open

yarn test:integration 'No tests found' on Windows #22

cdpython opened this issue Feb 7, 2019 · 0 comments

Comments

@cdpython
Copy link

cdpython commented Feb 7, 2019

Hi BJ!

Current contents of jest.config.js is below.

testMatch: ['<rootDir>/test/**/?(*.)+(spec|test).js?(x)']

run yarn test:integration command and 'No tests found' message appear like below.

λ yarn test:integration
yarn run v1.13.0
$ npm test -- test/integration

> fuzzmon-backend@0.0.1 test C:\Users\XXX\Desktop\dev\fbackend
> cross-env NODE_ENV=test jest --no-watchman "test/integration"

No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0

So I changed regex like testMatch: ['<rootDir>/test/**/*.(spec|test).(js|jsx)']

and works well!

> cross-env NODE_ENV=test jest --no-watchman

 PASS  test/integration/home.test.js
  Home
    GET /
      √ <200> should always return with the API server information (34ms)
    GET /spec
      √ <200> should always return API specification in swagger format (7ms)

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

Thanks, Bro~👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants