Skip to content

Commit 09e47d6

Browse files
rickhanloniicpojer
authored andcommitted
Fix typos in documentation (#5301)
1 parent 6d2394f commit 09e47d6

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/Configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ For example, the following would create a global `__DEV__` variable set to
296296
Note that, if you specify a global reference value (like an object or array)
297297
here, and some code mutates that value in the midst of running a test, that
298298
mutation will _not_ be persisted across test runs for other test files. In
299-
addition the `globals` object must be json-seriazable, so it can't be used
299+
addition the `globals` object must be json-serializable, so it can't be used
300300
to specify global functions. For that you should use `setupFiles`.
301301

302302
### `globalSetup` [string]

docs/JestObjectAPI.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ Executes only the macro task queue (i.e. all tasks queued by `setTimeout()` or
310310

311311
When this API is called, all timers are advanced by `msToRun` milliseconds. All
312312
pending "macro-tasks" that have been queued via `setTimeout()` or
313-
`setInterval()`, and would be executed within this timeframe will be executed.
313+
`setInterval()`, and would be executed within this time frame will be executed.
314314
Additionally if those macro-tasks schedule new macro-tasks that would be
315315
executed within the same time frame, those will be executed until there are no
316316
more macro-tasks remaining in the queue, that should be run within `msToRun`

docs/JestPlatform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ module.exports = {
157157
async function main() {
158158
const worker = new Worker(require.resolve('./heavy-task.js'));
159159

160-
// run 2 tasks in parellel with different arguments
160+
// run 2 tasks in parallel with different arguments
161161
const results = await Promise.all([
162162
worker.myHeavyTask({foo: 'bar'}),
163163
worker.myHeavyTask({bar: 'foo'}),

docs/SnapshotTesting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ which reviewers can study your changes better.
166166

167167
### Does snapshot testing only work with React components?
168168

169-
[React](TutorialReacte.md) and [React Native](TutorialReactNative.md) components
169+
[React](TutorialReact.md) and [React Native](TutorialReactNative.md) components
170170
are a good use case for snapshot testing. However, snapshots can capture any
171171
serializable value and should be used anytime the goal is testing whether the
172172
output is correct. The Jest repository contains many examples of testing the

docs/TimerMocks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ describe('infiniteTimerGame', () => {
135135
Another possibility is use `jest.advanceTimersByTime(msToRun)`. When this API is
136136
called, all timers are advanced by `msToRun` milliseconds. All pending
137137
"macro-tasks" that have been queued via setTimeout() or setInterval(), and would
138-
be executed during this timeframe, will be executed. Additionally if those
138+
be executed during this time frame, will be executed. Additionally if those
139139
macro-tasks schedule new macro-tasks that would be executed within the same time
140140
frame, those will be executed until there are no more macro-tasks remaining in
141141
the queue that should be run within msToRun milliseconds.

0 commit comments

Comments
 (0)