{"action":"closed","number":7194,"pull_request":{"url":"https://api.github.com/repos/facebook/jest/pulls/7194","id":223720177,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzNzIwMTc3","html_url":"https://github.com/facebook/jest/pull/7194","diff_url":"https://github.com/facebook/jest/pull/7194.diff","patch_url":"https://github.com/facebook/jest/pull/7194.patch","issue_url":"https://api.github.com/repos/facebook/jest/issues/7194","number":7194,"state":"closed","locked":false,"title":"Allow array of regexp strings for testRegex","user":{"login":"jamietre","id":573056,"node_id":"MDQ6VXNlcjU3MzA1Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/573056?v=4","gravatar_id":"","url":"https://api.github.com/users/jamietre","html_url":"https://github.com/jamietre","followers_url":"https://api.github.com/users/jamietre/followers","following_url":"https://api.github.com/users/jamietre/following{/other_user}","gists_url":"https://api.github.com/users/jamietre/gists{/gist_id}","starred_url":"https://api.github.com/users/jamietre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamietre/subscriptions","organizations_url":"https://api.github.com/users/jamietre/orgs","repos_url":"https://api.github.com/users/jamietre/repos","events_url":"https://api.github.com/users/jamietre/events{/privacy}","received_events_url":"https://api.github.com/users/jamietre/received_events","type":"User","site_admin":false},"body":"## Summary\r\n\r\nResolves https://github.com/facebook/jest/issues/7180\r\n\r\nCreating dynamic configurations to include or exclude specific things is difficult because of inconsistency in how config allows specifying inclusions and exclusions.\r\n\r\n- `testRegex` allows only a single regexp\r\n- `testMatch` allows an array of globs\r\n- `testPathIgnorePatterns` allows an array of regexps\r\n\r\nSo there's no format (regex or glob) that can be used to build an array that works both for including and excluding.\r\n\r\nThis PR allows `testRegex` to accept an array of regex strings as well as a string, resolving this problem.\r\n\r\nBecause this is the first configuration option that's overloaded with more than one valid type, `jest-validation` has also been enhanced with syntax that allows specifying more than one valid example in configuration.\r\n\r\n## Test plan\r\n\r\n- existing unit tests pass (except as expected where internal config changed types)\r\n- added unit tests to cover valid and error conditions\r\n","created_at":"2018-10-17T19:05:44Z","updated_at":"2018-10-18T13:55:30Z","closed_at":"2018-10-18T13:55:29Z","merged_at":null,"merge_commit_sha":"34d6604e7fbd90543a1ed595220dcbe1f7e3bde8","assignee":null,"assignees":[],"requested_reviewers":[{"login":"orta","id":49038,"node_id":"MDQ6VXNlcjQ5MDM4","avatar_url":"https://avatars2.githubusercontent.com/u/49038?v=4","gravatar_id":"","url":"https://api.github.com/users/orta","html_url":"https://github.com/orta","followers_url":"https://api.github.com/users/orta/followers","following_url":"https://api.github.com/users/orta/following{/other_user}","gists_url":"https://api.github.com/users/orta/gists{/gist_id}","starred_url":"https://api.github.com/users/orta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orta/subscriptions","organizations_url":"https://api.github.com/users/orta/orgs","repos_url":"https://api.github.com/users/orta/repos","events_url":"https://api.github.com/users/orta/events{/privacy}","received_events_url":"https://api.github.com/users/orta/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":847426897,"node_id":"MDU6TGFiZWw4NDc0MjY4OTc=","url":"https://api.github.com/repos/facebook/jest/labels/cla%20signed","name":"cla signed","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/jest/pulls/7194/commits","review_comments_url":"https://api.github.com/repos/facebook/jest/pulls/7194/comments","review_comment_url":"https://api.github.com/repos/facebook/jest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/jest/issues/7194/comments","statuses_url":"https://api.github.com/repos/facebook/jest/statuses/2a91803b533976361f2dc2c5d133810469aaa99d","head":{"label":"jamietre:jamiet/multiple-test-regexes","ref":"jamiet/multiple-test-regexes","sha":"2a91803b533976361f2dc2c5d133810469aaa99d","user":{"login":"jamietre","id":573056,"node_id":"MDQ6VXNlcjU3MzA1Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/573056?v=4","gravatar_id":"","url":"https://api.github.com/users/jamietre","html_url":"https://github.com/jamietre","followers_url":"https://api.github.com/users/jamietre/followers","following_url":"https://api.github.com/users/jamietre/following{/other_user}","gists_url":"https://api.github.com/users/jamietre/gists{/gist_id}","starred_url":"https://api.github.com/users/jamietre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamietre/subscriptions","organizations_url":"https://api.github.com/users/jamietre/orgs","repos_url":"https://api.github.com/users/jamietre/repos","events_url":"https://api.github.com/users/jamietre/events{/privacy}","received_events_url":"https://api.github.com/users/jamietre/received_events","type":"User","site_admin":false},"repo":{"id":138610959,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg2MTA5NTk=","name":"jest","full_name":"jamietre/jest","private":false,"owner":{"login":"jamietre","id":573056,"node_id":"MDQ6VXNlcjU3MzA1Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/573056?v=4","gravatar_id":"","url":"https://api.github.com/users/jamietre","html_url":"https://github.com/jamietre","followers_url":"https://api.github.com/users/jamietre/followers","following_url":"https://api.github.com/users/jamietre/following{/other_user}","gists_url":"https://api.github.com/users/jamietre/gists{/gist_id}","starred_url":"https://api.github.com/users/jamietre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamietre/subscriptions","organizations_url":"https://api.github.com/users/jamietre/orgs","repos_url":"https://api.github.com/users/jamietre/repos","events_url":"https://api.github.com/users/jamietre/events{/privacy}","received_events_url":"https://api.github.com/users/jamietre/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jamietre/jest","description":"🃏 Delightful JavaScript Testing.","fork":true,"url":"https://api.github.com/repos/jamietre/jest","forks_url":"https://api.github.com/repos/jamietre/jest/forks","keys_url":"https://api.github.com/repos/jamietre/jest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamietre/jest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamietre/jest/teams","hooks_url":"https://api.github.com/repos/jamietre/jest/hooks","issue_events_url":"https://api.github.com/repos/jamietre/jest/issues/events{/number}","events_url":"https://api.github.com/repos/jamietre/jest/events","assignees_url":"https://api.github.com/repos/jamietre/jest/assignees{/user}","branches_url":"https://api.github.com/repos/jamietre/jest/branches{/branch}","tags_url":"https://api.github.com/repos/jamietre/jest/tags","blobs_url":"https://api.github.com/repos/jamietre/jest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamietre/jest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamietre/jest/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamietre/jest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamietre/jest/statuses/{sha}","languages_url":"https://api.github.com/repos/jamietre/jest/languages","stargazers_url":"https://api.github.com/repos/jamietre/jest/stargazers","contributors_url":"https://api.github.com/repos/jamietre/jest/contributors","subscribers_url":"https://api.github.com/repos/jamietre/jest/subscribers","subscription_url":"https://api.github.com/repos/jamietre/jest/subscription","commits_url":"https://api.github.com/repos/jamietre/jest/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamietre/jest/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamietre/jest/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamietre/jest/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamietre/jest/contents/{+path}","compare_url":"https://api.github.com/repos/jamietre/jest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamietre/jest/merges","archive_url":"https://api.github.com/repos/jamietre/jest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamietre/jest/downloads","issues_url":"https://api.github.com/repos/jamietre/jest/issues{/number}","pulls_url":"https://api.github.com/repos/jamietre/jest/pulls{/number}","milestones_url":"https://api.github.com/repos/jamietre/jest/milestones{/number}","notifications_url":"https://api.github.com/repos/jamietre/jest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamietre/jest/labels{/name}","releases_url":"https://api.github.com/repos/jamietre/jest/releases{/id}","deployments_url":"https://api.github.com/repos/jamietre/jest/deployments","created_at":"2018-06-25T15:04:36Z","updated_at":"2018-10-16T17:19:26Z","pushed_at":"2018-10-18T13:53:45Z","git_url":"git://github.com/jamietre/jest.git","ssh_url":"git@github.com:jamietre/jest.git","clone_url":"https://github.com/jamietre/jest.git","svn_url":"https://github.com/jamietre/jest","homepage":"https://facebook.github.io/jest/","size":93809,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"7d5de68444c9dd302d1beea2a6a5ffca5336d178","user":{"login":"facebook","id":69631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjMx","avatar_url":"https://avatars3.githubusercontent.com/u/69631?v=4","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":15062869,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA2Mjg2OQ==","name":"jest","full_name":"facebook/jest","private":false,"owner":{"login":"facebook","id":69631,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjMx","avatar_url":"https://avatars3.githubusercontent.com/u/69631?v=4","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/facebook/jest","description":"🃏 Delightful JavaScript Testing.","fork":false,"url":"https://api.github.com/repos/facebook/jest","forks_url":"https://api.github.com/repos/facebook/jest/forks","keys_url":"https://api.github.com/repos/facebook/jest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/jest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/jest/teams","hooks_url":"https://api.github.com/repos/facebook/jest/hooks","issue_events_url":"https://api.github.com/repos/facebook/jest/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/jest/events","assignees_url":"https://api.github.com/repos/facebook/jest/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/jest/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/jest/tags","blobs_url":"https://api.github.com/repos/facebook/jest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/jest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/jest/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/jest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/jest/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/jest/languages","stargazers_url":"https://api.github.com/repos/facebook/jest/stargazers","contributors_url":"https://api.github.com/repos/facebook/jest/contributors","subscribers_url":"https://api.github.com/repos/facebook/jest/subscribers","subscription_url":"https://api.github.com/repos/facebook/jest/subscription","commits_url":"https://api.github.com/repos/facebook/jest/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/jest/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/jest/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/jest/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/jest/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/jest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/jest/merges","archive_url":"https://api.github.com/repos/facebook/jest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/jest/downloads","issues_url":"https://api.github.com/repos/facebook/jest/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/jest/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/jest/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/jest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/jest/labels{/name}","releases_url":"https://api.github.com/repos/facebook/jest/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/jest/deployments","created_at":"2013-12-10T00:18:04Z","updated_at":"2018-10-18T12:34:25Z","pushed_at":"2018-10-18T13:50:47Z","git_url":"git://github.com/facebook/jest.git","ssh_url":"git@github.com:facebook/jest.git","clone_url":"https://github.com/facebook/jest.git","svn_url":"https://github.com/facebook/jest","homepage":"https://facebook.github.io/jest/","size":122845,"stargazers_count":21044,"watchers_count":21044,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2773,"mirror_url":null,"archived":false,"open_issues_count":505,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2773,"open_issues":505,"watchers":21044,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/jest/pulls/7194"},"html":{"href":"https://github.com/facebook/jest/pull/7194"},"issue":{"href":"https://api.github.com/repos/facebook/jest/issues/7194"},"comments":{"href":"https://api.github.com/repos/facebook/jest/issues/7194/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/jest/pulls/7194/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/jest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/jest/pulls/7194/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/jest/statuses/2a91803b533976361f2dc2c5d133810469aaa99d"}},"author_association":"NONE","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"unstable","merged_by":null,"comments":4,"review_comments":1,"maintainer_can_modify":false,"commits":2,"additions":306,"deletions":46,"changed_files":27}}
{"actor":{"display_login":"jamietre"}}