diff --git a/docs/development.md b/docs/development.md index 6376478..eaedbb0 100644 --- a/docs/development.md +++ b/docs/development.md @@ -40,7 +40,8 @@ After doing so, you can run Nativefier with your test parameters: nativefier --your-awesome-new-flag 'https://your-test-site.com' ``` -Then run your nativefier app *through the command line too* (to see logs & errors): +Then run your nativefier app _through the command line too_ (to see logs & errors): + ```bash # Under Linux ./your-test-site-linux-x64/your-test-site @@ -67,5 +68,6 @@ but is painful to do manually. Do yourself a favor and install a - Logging is suppressed by default in tests, to avoid polluting Jest output. To get debug logs, `npm run test:withlog` or set the `LOGLEVEL` env. var. - For a good live experience, open two terminal panes/tabs running code/tests watchers: - 1. Run a TSC watcher: `npm run build:watch` - 2. Run a Jest unit tests watcher: `npm run test:watch` + 1. Run a TSC watcher: `npm run build:watch` + 2. Run a Jest unit tests watcher: `npm run test:watch` +- Alternatively, you can run both test processes in the same terminal by running: `npm run watch` diff --git a/package.json b/package.json index 9fc30bd..a2f905c 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,8 @@ "test:unit": "jest", "test:watch": "jest --watch", "test:withlog": "LOGLEVEL=trace npm run test", - "test": "jest --testRegex '[-.]test\\.js$'" + "test": "jest --testRegex '[-.]test\\.js$'", + "watch": "npx concurrently \"npm:*:watch\"" }, "dependencies": { "@types/cheerio": "0.x",