Skip to content

Commit 7d05c71

Browse files
cpojerfacebook-github-bot-3
authored andcommitted
0.6.0
Summary: Updated the Changelog and also the Contributing guide (copied from Relay :) ). This is a big release! public Reviewed By: amasad, voideanvalue Differential Revision: D2568010 fb-gh-sync-id: 79e1b82ea4a61f642c2eca62faa9c25618c2fbc6
1 parent 93bb520 commit 7d05c71

File tree

4 files changed

+26
-19
lines changed

4 files changed

+26
-19
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## 0.6.0
22

3+
* jest now reports the number of tests that were run instead of the number of test files.
4+
* Added a `--json` option to print test results as JSON.
35
* Changed the preprocessor API. A preprocessor now receives the script, file and
46
config. The cache key function receives the script, file and stringified
57
config to be able to create consistent hashes.

CONTRIBUTING.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Contributing to Jest
22

3-
Jest is one of Facebook's first open source projects that is both under very active development and is also being used to ship code to everybody on facebook.com. We're still working out the kinks to make contributing to this project as easy and transparent as possible, but we're not quite there yet. Hopefully this document makes the process for contributing clear and preempts some questions you may have.
3+
Jest is one of Facebook's open source projects that is both under very active development and is also being used to ship code to everybody on [facebook.com](https://www.facebook.com). We're still working out the kinks to make contributing to this project as easy and transparent as possible, but we're not quite there yet. Hopefully this document makes the process for contributing clear and answers some questions that you may have.
4+
5+
## [Code of Conduct](https://code.facebook.com/codeofconduct)
6+
7+
Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read [the full text](https://code.facebook.com/codeofconduct) so that you can understand what actions will and will not be tolerated.
48

59
## Our Development Process
610

@@ -17,46 +21,46 @@ The core team will be monitoring for pull requests. When we get one, we'll run s
1721
*Before* submitting a pull request, please make sure the following is done…
1822

1923
1. Fork the repo and create your branch from `master`.
20-
2. If you've added code that should be tested, add tests!
24+
2. If you've added code that should be tested, add tests.
2125
3. If you've changed APIs, update the documentation.
2226
4. Ensure the test suite passes (`npm test`).
2327
5. If you haven't already, complete the CLA.
2428

25-
### Contributor License Agreement ("CLA")
29+
### Contributor License Agreement (CLA)
2630

2731
In order to accept your pull request, we need you to submit a CLA. You only need to do this once, so if you've done this for another Facebook open source project, you're good to go. If you are submitting a pull request for the first time, just let us know that you have completed the CLA and we can cross-check with your GitHub username.
2832

29-
Complete your CLA here: <https://code.facebook.com/cla>
33+
[Complete your CLA here.](https://code.facebook.com/cla)
3034

31-
## Bugs
35+
### Bugs
3236

3337
### Where to Find Known Issues
3438

35-
We will be using GitHub Issues for our public bugs. We will keep a close eye on this and try to make it clear when we have an internal fix in progress. Before filing a new task, try to make sure your problem doesn't already exist.
39+
We will be using GitHub Issues for our public bugs. We will keep a close eye on this and try to make it clear when we have an internal fix in progress. Before filing a new issue, try to make sure your problem doesn't already exist.
3640

3741
### Reporting New Issues
3842

39-
The best way to get your bug fixed is to provide a reduced test case. jsFiddle, jsBin, and other sites provide a way to give live examples.
43+
The best way to get your bug fixed is to provide a reduced test case. Please provide a public repository with a runnable example.
4044

4145
### Security Bugs
4246

43-
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe disclosure of security bugs. With that in mind, please do not file public issues and go through the process outlined on that page.
47+
Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe disclosure of security bugs. With that in mind, please do not file public issues; go through the process outlined on that page.
4448

4549
## How to Get in Touch
4650

47-
* IRC - [#jestjs on freenode](http://webchat.freenode.net/?channels=jestjs)
48-
* Mailing list - [jestjs on Google Groups](http://groups.google.com/group/jestjs)
51+
* Discord - [#jest](https://discordapp.com/channels/102860784329052160/103622435865104384) on [Reactiflux](http://www.reactiflux.com/)
4952

50-
## Coding Style
53+
### Code Conventions
5154

55+
* 2 spaces for indentation (no tabs).
56+
* 80 character line length strongly preferred.
57+
* Prefer `'` over `"`.
58+
* ES2015 syntax when possible.
59+
* `'use strict';`.
60+
* Use [Flow types](http://flowtype.org/).
5261
* Use semicolons;
53-
* Commas last,
54-
* 2 spaces for indentation (no tabs)
55-
* Prefer `'` over `"`
56-
* `'use strict';`
57-
* 80 character line length
58-
* "Attractive"
59-
* Do not use the optional parameters of `setTimeout` and `setInterval`
62+
* Trailing commas,
63+
* Avd abbr wrds.
6064

6165
## License
6266

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Check out the [Getting Started](http://facebook.github.io/jest/docs/getting-star
5151
- [`config.globals` [object]](http://facebook.github.io/jest/docs/api.html#config-globals-object)
5252
- [`config.moduleFileExtensions` [array<string>]](http://facebook.github.io/jest/docs/api.html#config-modulefileextensions-array-string)
5353
- [`config.modulePathIgnorePatterns` [array<string>]](http://facebook.github.io/jest/docs/api.html#config-modulepathignorepatterns-array-string)
54+
- [`config.moduleNameMapper` [object<string, string>]](http://facebook.github.io/jest/docs/api.html#config-modulenamemapper-object-string-string)
5455
- [`config.preprocessCachingDisabled` [boolean]](http://facebook.github.io/jest/docs/api.html#config-preprocesscachingdisabled-boolean)
5556
- [`config.rootDir` [string]](http://facebook.github.io/jest/docs/api.html#config-rootdir-string)
5657
- [`config.scriptPreprocessor` [string]](http://facebook.github.io/jest/docs/api.html#config-scriptpreprocessor-string)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jest-cli",
33
"description": "Painless JavaScript Unit Testing.",
4-
"version": "0.6.0-alpha",
4+
"version": "0.6.0",
55
"main": "src/jest.js",
66
"dependencies": {
77
"coffee-script": "^1.10.0",

0 commit comments

Comments
 (0)