KaiHotz / react-rollup-boilerplate

Boilerplate for creating React component libraries, bundled with Rollup.js to ESM and/or CJS Modules, Storybook, Typescript
https://kaihotz.github.io/react-rollup-boilerplate/
MIT License
300 stars 67 forks source link

Can't run Jest; No tests found #1

Closed shayc closed 5 years ago

shayc commented 5 years ago

Platform: Windows/PowerShell

Problem: No tests found Fix: changing testMatch patterns to default.

PS C:\Projects\react-rollup-boilerplate> npm run test

> rollup-boilerplate@1.0.0 test C:\Projects\react-rollup-boilerplate
> jest

No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
In C:\Projects\react-rollup-boilerplate
  14 files checked.
  testMatch: C:/Projects/react-rollup-boilerplate/src/**/__tests__/**/*.{js,jsx,ts,tsx},C:/Projects/react-rollup-boilerplate/src/**\?(*.)(spec|test).{js,jsx,ts,tsx} - 0 matches
  testPathIgnorePatterns: \\node_modules\\ - 14 matches
  testRegex:  - 14 matches
Pattern:  - 0 matches
shayc commented 5 years ago

Fix is in PR #2