Skip to content

Commit

Permalink
fix(jest-config): Allow exactly one project
Browse files Browse the repository at this point in the history
Fixes #7496
  • Loading branch information
theneva committed Dec 11, 2018
1 parent 509272d commit 0da1acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -80,6 +80,7 @@
- `[jest-haste-map]` Remove legacy condition for duplicate module detection ([#7333](https://github.com/facebook/jest/pull/7333))
- `[jest-haste-map]` Fix `require` detection with trailing commas and ignore `import typeof` modules ([#7385](https://github.com/facebook/jest/pull/7385))
- `[jest-cli]` Fix to set prettierPath via config file ([#7412](https://github.com/facebook/jest/pull/7412))
- `[jest-config]` Allow exactly one project ([#7498](https://github.com/facebook/jest/pull/7498))

### Chore & Maintenance

Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/src/index.js
Expand Up @@ -277,7 +277,7 @@ export function readConfigs(
}
}

if (projects.length > 1) {
if (projects.length > 0) {
const parsedConfigs = projects
.filter(root => {
// Ignore globbed files that cannot be `require`d.
Expand Down

0 comments on commit 0da1acd

Please sign in to comment.