-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Standardize filenames in packages/expect #7306
Standardize filenames in packages/expect #7306
Conversation
- Rename file, imports, & test
…ionsErrors.js - Rename file & imports - No test found
- Rename files, imports, test - Rename import in scripts/browserBuild.js
- file, & imports - no test found
- Rename file, imports - No test found
- Rename file, imports, test, snap - spyMatchers.js file follows internal object, but that object does not follow capitalization rule. - #4969 (comment) "Files that primarily export types, objects or classes should use CapitalizedFileNames.js and should mirror what’s inside 1:1.""
- Rename file, imports, test, snap - toThrowMatchers.js file follows internal object, but that object does not follow capitalization rule. - #4969 (comment) "Files that primarily export types, objects or classes should use CapitalizedFileNames.js and should mirror what’s inside 1:1."
- Rename test only. Test is for isError in utils.js
- Rename test only. Test is for expect/index.js
- Rename test only. Test has no imports.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
References Standardize file naming #4969.
Updates naming in package expect. Uses conventions listed in #4969 (comment):
Decisions
matchers.js
jestMatchersObject.js
spyMatchers.js
toThrowmatchers.js
Questions
How should
asymmetricMatchers.js
be named? It exports a classAsymmetricMatcher
, but it also exports a bunch of functions, and was named in camelCase before.Test plan
Output of yarn run test on master and standardize filenames in packages/jest circus branches was the same.
jest-test-expect-master.txt
jest-test-expect-standardize-filenames.txt