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

[tests] Tweak the regex for jest unit tests to explicitly check for integration. #123

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

elainefigma
Copy link
Collaborator

@elainefigma elainefigma commented Oct 25, 2023

The regex bit (?!.integration.) checks that we don't match a test like integration.test.ts.

Our copy of this repo lives under the directory integrations/figma-for-jira. Currently, this regex inadvertently matches all tests within integrations/figma-for-jira because the folder name has the string integration

To fix the regex, I added a check to exclude integration. vs. just the string integration.

I checked that npm run test:unit runs both in this copy and in our copy.

image

@jvrankul23
Copy link
Collaborator

That's a funky problem.. nice catch!

@elainefigma elainefigma merged commit 86eb9ae into main Oct 26, 2023
1 check passed
@elainefigma elainefigma deleted the elaine/tweak-test-regex branch October 26, 2023 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants