diff --git a/docs/Resolution.md b/docs/Resolution.md index a64ef796f5..cace016af0 100644 --- a/docs/Resolution.md +++ b/docs/Resolution.md @@ -298,7 +298,7 @@ Any custom options passed to the resolver. By default, Metro populates this base #### `resolveRequest: CustomResolver` -A alternative resolver function to which the current request may be delegated. Defaults to [`resolver.resolveRequest`](./Configuration.md#resolvereqeuest). +An alternative resolver function to which the current request may be delegated. Defaults to [`resolver.resolveRequest`](./Configuration.md#resolverequest). Metro expects `resolveRequest` to have the following signature: diff --git a/packages/buck-worker-tool/src/__tests__/worker-test.js b/packages/buck-worker-tool/src/__tests__/worker-test.js index c4bc01f268..8d18f681b0 100644 --- a/packages/buck-worker-tool/src/__tests__/worker-test.js +++ b/packages/buck-worker-tool/src/__tests__/worker-test.js @@ -385,7 +385,7 @@ describe('Buck worker:', () => { }); }); - test('responds with success if the command finishes succesfully', () => { + test('responds with success if the command finishes successfully', () => { commands.transform = (args, _) => {}; mockFiles({path: {to: {args: 'transform'}}}); inStream.write( diff --git a/packages/metro-config/src/defaults/__tests__/exclusionList-test.js b/packages/metro-config/src/defaults/__tests__/exclusionList-test.js index c45f957f74..606411401b 100644 --- a/packages/metro-config/src/defaults/__tests__/exclusionList-test.js +++ b/packages/metro-config/src/defaults/__tests__/exclusionList-test.js @@ -16,7 +16,7 @@ const path = require('path'); describe('exclusionList', () => { let originalSeparator; - function setPathSeperator(sep: string) { + function setPathSeparator(sep: string) { // $FlowFixMe[cannot-write]: property sep is not writable. path.sep = sep; } @@ -31,14 +31,14 @@ describe('exclusionList', () => { }); test('proves we can write to path.sep for setting up the tests', () => { - setPathSeperator('/'); + setPathSeparator('/'); expect(require('path').sep).toBe('/'); - setPathSeperator('\\'); + setPathSeparator('\\'); expect(require('path').sep).toBe('\\'); }); - describe('simulate macOS/linux enviornment', () => { - beforeEach(() => setPathSeperator('/')); + describe('simulate macOS/linux environment', () => { + beforeEach(() => setPathSeparator('/')); test('converts forward slashes in the RegExp to the OS specific path separator', () => { // Simple case @@ -73,8 +73,8 @@ describe('exclusionList', () => { }); }); - describe('simulate windows enviornment', () => { - beforeEach(() => setPathSeperator('\\')); + describe('simulate windows environment', () => { + beforeEach(() => setPathSeparator('\\')); test('converts forward slashes in the RegExp to the OS specific path separator', () => { // Simple case diff --git a/packages/metro-file-map/src/watchers/NativeWatcher.js b/packages/metro-file-map/src/watchers/NativeWatcher.js index 3c11a384fe..49dd023144 100644 --- a/packages/metro-file-map/src/watchers/NativeWatcher.js +++ b/packages/metro-file-map/src/watchers/NativeWatcher.js @@ -127,9 +127,9 @@ export default class NativeWatcher extends AbstractWatcher { } // For directory "rename" events, notify that we need a recrawl since we - // wont' receive events for unmodified files underneath a moved (or + // won't receive events for unmodified files underneath a moved (or // cloned) directory. Renames are fired by the OS on moves, clones, and - // creations. We ignore "change" events because they indiciate a change + // creations. We ignore "change" events because they indicate a change // to directory metadata, rather than its path or existence. if (type === 'd' && event === 'rename') { debug( diff --git a/packages/metro-resolver/src/PackageResolve.js b/packages/metro-resolver/src/PackageResolve.js index fb85bffaed..34023c048d 100644 --- a/packages/metro-resolver/src/PackageResolve.js +++ b/packages/metro-resolver/src/PackageResolve.js @@ -83,7 +83,7 @@ export function redirectModulePath( * * - A relative specifier (beginning with '.'), which may be redirected by a * `package.json` file local to `context.originModulePath`. - * - Note: A path begining with '/' is treated as an absolute specifier + * - Note: A path beginning with '/' is treated as an absolute specifier * (non-standard). * - A bare specifier (e.g. 'some-pkg', 'some-pkg/foo'), which may be * redirected by `package.json` rules in the containing package. diff --git a/packages/metro-runtime/src/polyfills/__tests__/MetroFastRefreshMockRuntime.js b/packages/metro-runtime/src/polyfills/__tests__/MetroFastRefreshMockRuntime.js index d24841019f..304712fbd6 100644 --- a/packages/metro-runtime/src/polyfills/__tests__/MetroFastRefreshMockRuntime.js +++ b/packages/metro-runtime/src/polyfills/__tests__/MetroFastRefreshMockRuntime.js @@ -68,7 +68,7 @@ export class Runtime { onFullReload: jest.fn(), /** - * Called when Fast Refresh has occured. + * Called when Fast Refresh has occurred. */ onFastRefresh: jest.fn(), };