-
-
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 e2e #7471
Conversation
I don't think it's necessary to change these, but if you must, don't change to Feel free to take |
Sorry about that! Thank you for the additional clarification
Thank you! Should I be adding these to a new PR each or just add them to this one? |
Feel free to do it in one shot :) |
Ouch, I forgot about this one #7464 |
You can throw away last commit, e.g by |
…he' and their corresponding test files
* Add issue template labels * Lint
I believe the e2e folder is done now. :) Should I open a new PR for the other folders which need standardizing? |
This is fantastic, thank you so much for tackling it! |
@thymikee mind merging if it looks alright to you? |
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.
Looking good! Left some final comments. Plus, looks like these files were renamed wrongly (GitHub makes it impossible to comment on renamed files, shame):
e2e/testNamePattern_skipped/package.json → e2e/test-name-pattern/package.json
e2e/testNamePattern/package.json → e2e/test-name-pattern-skipped/package.json
@@ -5,10 +5,10 @@ | |||
"jest": { | |||
"collectCoverageOnlyFrom": { | |||
"<rootDir>/this-directory-is-covered/Covered.js": true, |
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.
Is this left with capital case on purpose? I've seen at least one more similar case (with (...)/Covered.js
), so make sure to adjust that as well if you change that
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.
I did miss these files, sorry! I also deleted the left over files named .e2e/transform/babel-jest/this-directory-is-covered/ExcludedFromCoverage.js
and ./e2e/transform/no-babel-jest/this-directory-is-covered/ExcludedFromCoverage.js
in the same location
…ttern-temp/package.json
…ipped/package.json
…ttern.package.json
…ipped/package.json
… into standardize/bad-source-map
Sorry about that last mess of commits, I was trying to change the two file names and couldn't get git to recognize the swap, is it because the two files are identical? |
e2e/transform/babel-jest/this-directory-is-covered/excludedFromCoverage.js
Show resolved
Hide resolved
Thanks for staying with us on that, appreciated! |
* standardizing file names to fit facebook standards * updating filenames to better fit facebook standards * standardizing jest-runner filenames to fit facebook standards * standardizing file names in /e2e/before-all-filtered * resolving naming discrepencies inside of files * standardizing filenames in e2e/before-each-queue and corresponding tests * standardizing several tests in ./e2e/__test__/ * standardizing filenames for babel-plugin-jest-hoist and related test files * standardizing file-names for folders 'browser-support' and 'clear-cache' and their corresponding test files * resolving issue with karma referencing non-standard browserTest * resolving issue with karma referencing non-standard browserTest filename * standardizing file names to fit facebook standards * updating filenames to better fit facebook standards * Add issue template labels (jestjs#7470) * Add issue template labels * Lint * standardizing jest-runner filenames to fit facebook standards * allow `bail` setting to control when to bail out of a failing test run (jestjs#7335) * standardizing file names in /e2e/before-all-filtered * resolving naming discrepencies inside of files * standardizing filenames in e2e/before-each-queue and corresponding tests * standardizing several tests in ./e2e/__test__/ * standardizing filenames for babel-plugin-jest-hoist and related test files * standardizing file-names for folders 'browser-support' and 'clear-cache' and their corresponding test files * resolving issue with karma referencing non-standard browserTest * resolving issue with karma referencing non-standard browserTest filename * standardizing file names in e2e/__test__ * standardizing file names in compare-dom-nodes * standardizing file names for coverage-report and coverage-remap * updating case sensitive filenames * renaming files to fit facebook standards * adding case sensitive file changes * resolving dependency issues after renaming case sensitive files. * standardizing file names to fit facebook standards * adjusting file names and snapshots to fit facebook standards * adjusting file names to fit facebook standards * resolves bug with nodeAssertionError not being found by test suite * changing references to match file name * changing file name to check test-jest-circus * readding a previously deleted snapshot * Update e2e/bad-source-map/__tests__/badSourceMap.js comment to reflect new file name Co-Authored-By: GGonryun <amodestduck@gmail.com> * improving file naming conventions letters g & j * changing filename to fit facebook standards * renaming filenames to fit facebook standards for 'L' * renaming filenames to fit facebook standards for 'M' * renaming filenames to fit facebook standards for 'N' * resolving leftover merge conflicts * reverting error in naming by changing filename back to uppercase * renaming filenames 'O' to fit facebook standards. * renaming filenames 'P' to fit facebook standards. * renaming filenames 'R' to fit facebook standards. * renaming filenames 'S' to fit facebook standards. * changing regex to match temporary folder name * renaming filenames 'T' to fit facebook standards. * renaming filenames 'U' to fit facebook standards. * renaming filenames 'V' to fit facebook standards. * renaming filenames 'W' to fit facebook standards. * updating snapshots to reflect standardized file names * Rename e2e/test-name-pattern-skipped/package.json to e2e/test-name-pattern-temp/package.json * Rename e2e/test-name-pattern/package.json to e2e/test-name-pattern-skipped/package.json * Rename e2e/test-name-pattern-skipped/package.json to e2e/test-name-pattern.package.json * Rename e2e/test-name-pattern-temp/package.json to e2e/test-name-pattern/package.json * Rename e2e/test-name-pattern.package.json to e2e/test-name-pattern-skipped/package.json * removing left over files and adjusting file names previously missed * deleting more leftover files
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
This Pull Request helps standardizes file names with Facebook's naming conventions as outlined in issue #4969.
The following folders inside of
./e2e/
and their corresponding files, tests, or snapshots have been modified and checked:auto-clear-mocks
auto-reset-mocks
auto-restore-mocks
babel-plugin-jest-hoist
bad-source-map
before-all-filtered
browser-support
clear-cache
The folder's corresponding tests can be located in
./e2e/__tests__/<folder_name>.test.js
.The folder's corresponding snapshots can be located in
./e2e/__tests__/__snapshots__/
.Test plan
executed
yarn run clean-all
andyarn install
andyarn jest
.yarn jest
yields no failures and similar results when compared to master.