Skip to content

Commit e4f7d84

Browse files
rickhanloniicpojer
authored andcommitted
Update discord links, lint markdown (#5586)
* Update discord links * Lint md * Update changelog
1 parent 0285e63 commit e4f7d84

14 files changed

Lines changed: 159 additions & 82 deletions

File tree

.github/SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Please note this issue tracker is not a help forum. We recommend using
22
[StackOverflow](https://stackoverflow.com/questions/tagged/jest) or our
3-
[discord channel](http://facebook.github.io/jest/en/help.html) for questions.
3+
[discord channel](https://discord.gg/MWRhKCj) for questions.

CHANGELOG.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,15 @@
22

33
### Fixes
44

5+
* `[docs]` Update discord links ([#5586](https://github.com/facebook/jest/pull/5586))
56
* `[jest-runtime]` Align handling of testRegex on Windows between searching for
67
tests and instrumentation checks
78
([#5560](https://github.com/facebook/jest/pull/5560))
89

910
### Features
10-
* `[docs]` Add MongoDB guide ([#5571](https://github.com/facebook/jest/pull/5571))
11+
12+
* `[docs]` Add MongoDB guide
13+
([#5571](https://github.com/facebook/jest/pull/5571))
1114
* `[jest-runtime]` Deprecate mapCoverage option.
1215
([#5177](https://github.com/facebook/jest/pull/5177))
1316
* `[babel-jest]` Add option to return sourcemap from the transformer separately
@@ -43,8 +46,8 @@
4346

4447
* `[jest-config]` Allow `<rootDir>` to be used with `collectCoverageFrom`
4548
([#5524](https://github.com/facebook/jest/pull/5524))
46-
* `[filenames]` Standardize files names in "integration-tests" folder ([#5513](https://github.com/facebook/jest/pull/5513))
47-
49+
* `[filenames]` Standardize files names in "integration-tests" folder
50+
([#5513](https://github.com/facebook/jest/pull/5513))
4851

4952
## jest 22.2.2
5053

@@ -1603,4 +1606,4 @@ See https://facebook.github.io/jest/blog/2016/12/15/2016-in-jest.html
16031606

16041607
## <=0.4.0
16051608

1606-
* See commit history for changes in previous versions of jest.
1609+
* See commit history for changes in previous versions of jest.

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,8 @@ issues; go through the process outlined on that page.
172172

173173
## How to Get in Touch
174174

175-
* Discord -
176-
[#jest](https://discordapp.com/channels/102860784329052160/103622435865104384)
177-
on [Reactiflux](http://www.reactiflux.com/)
175+
* Discord - [#jest](https://discord.gg/MWRhKCj) on
176+
[Reactiflux](http://www.reactiflux.com/)
178177

179178
## Code Conventions
180179

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ You are now set up to use all ES6 features and React specific syntax.
165165
166166
Jest can be used in projects that use [webpack](https://webpack.js.org/) to
167167
manage assets, styles, and compilation. webpack does offer some unique
168-
challenges over other tools. Refer to the [webpack guide](docs/Webpack.md) to get
169-
started.
168+
challenges over other tools. Refer to the [webpack guide](docs/Webpack.md) to
169+
get started.
170170
171171
### Using TypeScript
172172
@@ -188,7 +188,8 @@ Learn more about using
188188
## Badge
189189
190190
Show the world you're using _Jest_ →
191-
[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest) [![jest](https://facebook.github.io/jest/img/jest-badge.svg)](https://github.com/facebook/jest)
191+
[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)
192+
[![jest](https://facebook.github.io/jest/img/jest-badge.svg)](https://github.com/facebook/jest)
192193
193194
```md
194195
[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)

docs/Configuration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,8 @@ Specifies notification mode. Requires `notify: true`.
410410
* `success`: send a notification when tests pass.
411411
* `change`: send a notification when the status changed.
412412
* `success-change`: send a notification when tests pass or once when it fails.
413-
* `failure-success`: send a notification when tests fails or once when it passes.
413+
* `failure-success`: send a notification when tests fails or once when it
414+
passes.
414415

415416
### `preset` [string]
416417

docs/Es6ClassMocks.md

Lines changed: 121 additions & 47 deletions
Large diffs are not rendered by default.

docs/MongoDB.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ const MongodbMemoryServer = require('mongodb-memory-server');
2525
const MONGO_DB_NAME = 'jest';
2626
const mongod = new MongodbMemoryServer.default({
2727
instance: {
28-
dbName: MONGO_DB_NAME
28+
dbName: MONGO_DB_NAME,
2929
},
3030
binary: {
31-
version: '3.2.19'
32-
}
31+
version: '3.2.19',
32+
},
3333
});
3434

3535
module.exports = function() {
@@ -105,17 +105,20 @@ it('should aggregate docs from collection', async () => {
105105
{type: 'Image'},
106106
{type: 'Document'},
107107
{type: 'Image'},
108-
{type: 'Document'}
108+
{type: 'Document'},
109109
]);
110110

111111
const topFiles = await files
112-
.aggregate([{$group: {_id: '$type', count: {$sum: 1}}}, {$sort: {count: -1}}])
112+
.aggregate([
113+
{$group: {_id: '$type', count: {$sum: 1}}},
114+
{$sort: {count: -1}},
115+
])
113116
.toArray();
114117

115118
expect(topFiles).toEqual([
116119
{_id: 'Document', count: 3},
117120
{_id: 'Image', count: 2},
118-
{_id: 'Video', count: 1}
121+
{_id: 'Video', count: 1},
119122
]);
120123
});
121124
```

docs/MoreResources.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ projects.
3232

3333
Ask questions and find answers from other Jest users like you.
3434
[Reactiflux](http://www.reactiflux.com/) is a Discord chat where a lot of Jest
35-
discussion happens. Check out the
36-
[#jest](https://discordapp.com/channels/102860784329052160/103622435865104384)
37-
channel.
35+
discussion happens. Check out the [#jest](https://discord.gg/MWRhKCj) channel.
3836

3937
Follow the [Jest Twitter account](https://twitter.com/fbjest) and
4038
[blog](/jest/blog/) to find out what's happening in the world of Jest.

docs/SnapshotTesting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ Failed snapshots can also be updated interactively in watch mode:
127127

128128
![](/jest/img/content/interactiveSnapshot.png)
129129

130-
Once you enter Interactive Snapshot Mode, Jest will step you through
131-
the failed snapshots one test suite at a time and give you the opportunity to
132-
review the failed output.
130+
Once you enter Interactive Snapshot Mode, Jest will step you through the failed
131+
snapshots one test suite at a time and give you the opportunity to review the
132+
failed output.
133133

134134
From here you can choose to update that snapshot or skip to the next:
135135

packages/jest-editor-support/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This is only useful if you are interested in building an editor integration for
88
Jest.
99

1010
For now as an end user, we'd recommend looking at either
11-
[vscode-jest](https://github.com/jest-community/vscode-jest/) or
11+
[vscode-jest](https://github.com/jest-community/vscode-jest/) or
1212
[majestic](https://github.com/Raathigesh/majestic/).
1313

1414
## Note

0 commit comments

Comments
 (0)