Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Resolution.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion packages/buck-worker-tool/src/__tests__/worker-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/metro-file-map/src/watchers/NativeWatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion packages/metro-resolver/src/PackageResolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
};
Expand Down
Loading