Skip to content

Commit 576a95a

Browse files
committed
docs: update changelog
1 parent 7a51502 commit 576a95a

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969

7070
### Features
7171

72+
* `[jest-message-util]` Add codeframe to test assertion failures
73+
([#5087](https://github.com/facebook/jest/pull/5087))
7274
* `[jest-config]` Add Global Setup/Teardown options
7375
([#4716](https://github.com/facebook/jest/pull/4716))
7476
* `[jest-config]` Add `testEnvironmentOptions` to apply to jsdom options or node

docs/Configuration.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,18 @@ here, and some code mutates that value in the midst of running a test, that
262262
mutation will _not_ be persisted across test runs for other test files.
263263

264264
### `globalSetup` [string]
265+
265266
Default: `undefined`
266267

267-
This option allows the use of a custom global setup module which exports an async function that is triggered once before all test suites.
268+
This option allows the use of a custom global setup module which exports an
269+
async function that is triggered once before all test suites.
268270

269271
### `globalTeardown` [string]
272+
270273
Default: `undefined`
271274

272-
This option allows the use of a custom global teardown module which exports an async function that is triggered once after all test suites.
275+
This option allows the use of a custom global teardown module which exports an
276+
async function that is triggered once after all test suites.
273277

274278
### `mapCoverage` [boolean]
275279

docs/TimerMocks.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ test('waits 1 second before ending the game', () => {
3434
const timerGame = require('../timerGame');
3535
timerGame();
3636

37-
expect(setTimeout).toHaveBeenCalledTimes(1)
37+
expect(setTimeout).toHaveBeenCalledTimes(1);
3838
expect(setTimeout).toHaveBeenLastCalledWith(expect.any(Function), 1000);
3939
});
4040
```
@@ -63,7 +63,7 @@ test('calls the callback after 1 second', () => {
6363

6464
// Now our callback should have been called!
6565
expect(callback).toBeCalled();
66-
expect(callback).toHaveBeenCalledTimes(1)
66+
expect(callback).toHaveBeenCalledTimes(1);
6767
});
6868
```
6969

@@ -110,7 +110,7 @@ describe('infiniteTimerGame', () => {
110110

111111
// At this point in time, there should have been a single call to
112112
// setTimeout to schedule the end of the game in 1 second.
113-
expect(setTimeout).toHaveBeenCalledTimes(1)
113+
expect(setTimeout).toHaveBeenCalledTimes(1);
114114
expect(setTimeout).toHaveBeenLastCalledWith(expect.any(Function), 1000);
115115

116116
// Fast forward and exhaust only currently pending timers
@@ -122,7 +122,7 @@ describe('infiniteTimerGame', () => {
122122

123123
// And it should have created a new timer to start the game over in
124124
// 10 seconds
125-
expect(setTimeout).toHaveBeenCalledTimes(2)
125+
expect(setTimeout).toHaveBeenCalledTimes(2);
126126
expect(setTimeout).toHaveBeenLastCalledWith(expect.any(Function), 10000);
127127
});
128128
});
@@ -170,7 +170,7 @@ it('calls the callback after 1 second via advanceTimersByTime', () => {
170170

171171
// Now our callback should have been called!
172172
expect(callback).toBeCalled();
173-
expect(callback).toHaveBeenCalledTimes(1)
173+
expect(callback).toHaveBeenCalledTimes(1);
174174
});
175175
```
176176

0 commit comments

Comments
 (0)