Standardize file names: Fix integration folder names#5298
Standardize file names: Fix integration folder names#5298cpojer merged 2 commits intojestjs:masterfrom
Conversation
| ### Chore & Maintenance | ||
|
|
||
| * `[filenames]` Standardize folder names under `integration-tests/` | ||
| ([#x](https://github.com/facebook/jest/pull/x)) |
thymikee
left a comment
There was a problem hiding this comment.
Looks good, small nits noted
| const {cleanup} = require('../utils'); | ||
|
|
||
| const DIR = path.join(os.tmpdir(), 'jest_global_setup'); | ||
| const DIR = path.join(os.tmpdir(), 'jest_global-setup'); |
There was a problem hiding this comment.
In multiple places this need to be changed to: jest-global-setup (and jest-global-teardown accordingly too)
There was a problem hiding this comment.
Right you are! Searched and fixed these files:
→ git status -s
M integration-tests/__tests__/global_setup.test.js
M integration-tests/__tests__/global_teardown.test.js
M integration-tests/global-setup/__tests__/setup1.test.js
M integration-tests/global-setup/__tests__/setup2.test.js
M integration-tests/global-setup/__tests__/setup3.test.js
M integration-tests/global-setup/setup.js
M integration-tests/global-teardown/__tests__/teardown1.test.js
M integration-tests/global-teardown/__tests__/teardown2.test.js
M integration-tests/global-teardown/__tests__/teardown3.test.js
M integration-tests/global-teardown/teardown.js
154b3f3 to
5501be2
Compare
|
@thymikee Both nits addressed. |
thymikee
left a comment
There was a problem hiding this comment.
Looks like these 2 changes are the last for this PR :D
| const runJest = require('../runJest'); | ||
|
|
||
| const CACHE = path.resolve(os.tmpdir(), 'clear_cache_directory'); | ||
| const CACHE = path.resolve(os.tmpdir(), 'clear-cache_directory'); |
| const path = require('path'); | ||
|
|
||
| const DIR = path.resolve(os.tmpdir(), 'custom_reporters_test_dir'); | ||
| const DIR = path.resolve(os.tmpdir(), 'custom-reporters_test_dir'); |
There was a problem hiding this comment.
custom-reporters-test-dir
There was a problem hiding this comment.
Ah yes. Sorry about that. Both of these are fixed.
Fixes all the folder names in the integration-tests folder to follow Facebook internal file / folder naming conventions. This is the first of several incremental PRs.
5501be2 to
87b3db4
Compare
thymikee
left a comment
There was a problem hiding this comment.
Looks like it, thank you!
|
🎉 thanks. @thymikee thank you for all your help. Next PR should come next Friday. |
|
You're welcome! |
|
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 is the first of many PRs to standardize file names and fix #4969. Per @thymikee guidance I'll be making these changes incrementally. This PR only renames folder names. A future PR will include filenames.
In this PR I:
mv integration_tests integration-testsintegration-testsNow the folders (not filenames yet) follow standard Facebook practice:
List of commands I ran for all subfolders:
find . -name '*.js' -print0 | xargs -0 sed -i "" "s/integration_tests/integration-tests/g"I ran this command across.md,.snap,.json,.gitignorefilesFolders I left untouched
__mocks__,node_modules,__tests__, basically anything with a leading__All the test cases pass. I'm happy to squash the commits as well. Any feedback?