diff --git a/README.md b/README.md index ca507071be7..c873d8f1087 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,9 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser. The page will automatically reload if you make changes to the code.
You will see the build errors and lint warnings in the console. -Build errors +

+Build errors +

### `npm test` or `yarn test` diff --git a/package.json b/package.json index e5d67aa16e3..9a590471c3c 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "publish": "tasks/publish.sh", "start": "cd packages/react-scripts && node bin/react-scripts.js start", "screencast": "node ./tasks/screencast.js", + "screencast:error": "svg-term --cast jyu19xGl88FQ3poMY8Hbmfw8y --out screencast-error.svg --window --at 12000 --no-cursor", "test": "cd packages/react-scripts && node bin/react-scripts.js test --env=jsdom", "format": "prettier --trailing-comma es5 --single-quote --write 'packages/*/*.js' 'packages/*/!(node_modules)/**/*.js'", "precommit": "lint-staged" diff --git a/screencast-error.svg b/screencast-error.svg new file mode 100644 index 00000000000..fdf4267780b --- /dev/null +++ b/screencast-error.svg @@ -0,0 +1 @@ +Failedtocompile../src/App.jsSyntaxerror:Unexpectedtoken(8:7)6|render(){7|return(>8|<<divclassName="App">|^9|<headerclassName="App-header">10|<imgsrc={logo}className="App-logo"alt="logo"/>11|<h1className="App-title">WelcometoReact</h1> \ No newline at end of file