Skip to content

Commit

Permalink
Merge pull request jest-community#90 from orta/cra
Browse files Browse the repository at this point in the history
Fixes for create-react-app
  • Loading branch information
orta committed Mar 28, 2017
2 parents 7dcb23d + 35431b2 commit f9036ee
Show file tree
Hide file tree
Showing 8 changed files with 5,368 additions and 26 deletions.
8 changes: 5 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
"out": true
"out": true,
"node_modules/jest-editor-support/src": false
},

"tslint.exclude": "./integrations/*",
"search.exclude": {
"out": true // set this to false to include "out" folder in search results
"out": true, // set this to false to include "out" folder in search results,
"node_modules/jest-editor-support/src": false

},
"typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version
"eslint.enable": false,
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Master

* Show channel command - orta
* Create React App fixes - orta

### 2.0.4

Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,26 @@ The other part is inside the [Jest source code](http://github.com/facebook/jest/
It's very possible that you're going to want to make changes inside here, if you're doing something that touches the test runner process or file parsers. To get that set up to work I'd recommend doing this:

```
# set up jest
cd ..
git clone https://github.com/facebook/jest.git
cd jest
yarn install
# link jest-editor-support
cd packages/jest-editor-support
yarn link
# set up vscode-jest to use the real jest-editor-support
cd ../../..
cd vscode-jest
yarn link jest-editor-support
# go back and start the jest build watcher
cd ..
cd jest
yarn watch
```

With that installed, you want to use a custom `jest-editor-support` by going into `cd packages/jest-editor-support` and running `yarn link`.
Expand Down
4 changes: 4 additions & 0 deletions integrations/create-react-example/src/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
});

it("adds", () => {
expect("a").toEqual("b")
})
Loading

0 comments on commit f9036ee

Please sign in to comment.