diff --git a/docs/ManualMocks.md b/docs/ManualMocks.md index 12fee507ad52..ea80616bedcd 100644 --- a/docs/ManualMocks.md +++ b/docs/ManualMocks.md @@ -160,7 +160,7 @@ be useful to require the real module using `require.requireActual(moduleName)` in your manual mock and amending it with mock functions before exporting it. The code for this example is available at -[examples/manual_mocks](https://github.com/facebook/jest/tree/master/examples/manual_mocks). +[examples/manual-mocks](https://github.com/facebook/jest/tree/master/examples/manual-mocks). ### Using with ES module imports diff --git a/examples/getting_started/.babelrc b/examples/getting-started/.babelrc similarity index 100% rename from examples/getting_started/.babelrc rename to examples/getting-started/.babelrc diff --git a/examples/getting_started/package.json b/examples/getting-started/package.json similarity index 100% rename from examples/getting_started/package.json rename to examples/getting-started/package.json diff --git a/examples/getting_started/sum.js b/examples/getting-started/sum.js similarity index 100% rename from examples/getting_started/sum.js rename to examples/getting-started/sum.js diff --git a/examples/getting_started/sum.test.js b/examples/getting-started/sum.test.js similarity index 100% rename from examples/getting_started/sum.test.js rename to examples/getting-started/sum.test.js diff --git a/examples/manual_mocks/.babelrc b/examples/manual-mocks/.babelrc similarity index 100% rename from examples/manual_mocks/.babelrc rename to examples/manual-mocks/.babelrc diff --git a/examples/manual_mocks/FileSummarizer.js b/examples/manual-mocks/FileSummarizer.js similarity index 100% rename from examples/manual_mocks/FileSummarizer.js rename to examples/manual-mocks/FileSummarizer.js diff --git a/examples/manual_mocks/__mocks__/fs.js b/examples/manual-mocks/__mocks__/fs.js similarity index 100% rename from examples/manual_mocks/__mocks__/fs.js rename to examples/manual-mocks/__mocks__/fs.js diff --git a/examples/manual_mocks/__mocks__/lodash.js b/examples/manual-mocks/__mocks__/lodash.js similarity index 100% rename from examples/manual_mocks/__mocks__/lodash.js rename to examples/manual-mocks/__mocks__/lodash.js diff --git a/examples/manual_mocks/__tests__/file_summarizer.test.js b/examples/manual-mocks/__tests__/file_summarizer.test.js similarity index 100% rename from examples/manual_mocks/__tests__/file_summarizer.test.js rename to examples/manual-mocks/__tests__/file_summarizer.test.js diff --git a/examples/manual_mocks/__tests__/lodashMocking.test.js b/examples/manual-mocks/__tests__/lodashMocking.test.js similarity index 100% rename from examples/manual_mocks/__tests__/lodashMocking.test.js rename to examples/manual-mocks/__tests__/lodashMocking.test.js diff --git a/examples/manual_mocks/__tests__/user.test.js b/examples/manual-mocks/__tests__/user.test.js similarity index 100% rename from examples/manual_mocks/__tests__/user.test.js rename to examples/manual-mocks/__tests__/user.test.js diff --git a/examples/manual_mocks/__tests__/userMocked.test.js b/examples/manual-mocks/__tests__/userMocked.test.js similarity index 100% rename from examples/manual_mocks/__tests__/userMocked.test.js rename to examples/manual-mocks/__tests__/userMocked.test.js diff --git a/examples/manual_mocks/models/__mocks__/user.js b/examples/manual-mocks/models/__mocks__/user.js similarity index 100% rename from examples/manual_mocks/models/__mocks__/user.js rename to examples/manual-mocks/models/__mocks__/user.js diff --git a/examples/manual_mocks/models/user.js b/examples/manual-mocks/models/user.js similarity index 100% rename from examples/manual_mocks/models/user.js rename to examples/manual-mocks/models/user.js diff --git a/examples/manual_mocks/package.json b/examples/manual-mocks/package.json similarity index 100% rename from examples/manual_mocks/package.json rename to examples/manual-mocks/package.json diff --git a/examples/module_mock/.babelrc b/examples/module-mock/.babelrc similarity index 100% rename from examples/module_mock/.babelrc rename to examples/module-mock/.babelrc diff --git a/examples/module_mock/__tests__/full_mock.js b/examples/module-mock/__tests__/full_mock.js similarity index 100% rename from examples/module_mock/__tests__/full_mock.js rename to examples/module-mock/__tests__/full_mock.js diff --git a/examples/module_mock/__tests__/mock_per_test.js b/examples/module-mock/__tests__/mock_per_test.js similarity index 100% rename from examples/module_mock/__tests__/mock_per_test.js rename to examples/module-mock/__tests__/mock_per_test.js diff --git a/examples/module_mock/__tests__/partial_mock.js b/examples/module-mock/__tests__/partial_mock.js similarity index 100% rename from examples/module_mock/__tests__/partial_mock.js rename to examples/module-mock/__tests__/partial_mock.js diff --git a/examples/module_mock/fruit.js b/examples/module-mock/fruit.js similarity index 100% rename from examples/module_mock/fruit.js rename to examples/module-mock/fruit.js diff --git a/examples/module_mock/package.json b/examples/module-mock/package.json similarity index 100% rename from examples/module_mock/package.json rename to examples/module-mock/package.json