From 754c3ae73e5da310202ac9e987ada38a94fc6d46 Mon Sep 17 00:00:00 2001 From: Rob Walker Date: Wed, 27 Jul 2022 22:44:56 +0100 Subject: [PATCH 1/2] docs: small tweaks --- docs/introduction/getting-started.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/introduction/getting-started.md b/docs/introduction/getting-started.md index e383f08d..aed40781 100644 --- a/docs/introduction/getting-started.md +++ b/docs/introduction/getting-started.md @@ -28,7 +28,7 @@ Below you can find an example config (can also be found in the [example app](htt }, "android": { "packageName": "com.owldemo" - }, + } } ``` @@ -47,9 +47,7 @@ describe('App.tsx', () => { expect(screen).toMatchBaseline(); }); -}); -describe('App.tsx', () => { it('presses a button, then takes a screenshot', async () => { await press('button') From fc69e0de6c91e3abe0cd56d7f5c92ad2a9c98e49 Mon Sep 17 00:00:00 2001 From: Rob Walker Date: Wed, 27 Jul 2022 22:58:23 +0100 Subject: [PATCH 2/2] doc: use npx commands for the npm examples --- docs/cli/building-the-app.md | 2 +- docs/cli/testing-the-app.md | 6 +++--- docs/introduction/getting-started.md | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/cli/building-the-app.md b/docs/cli/building-the-app.md index 1bba83a9..8e766a41 100644 --- a/docs/cli/building-the-app.md +++ b/docs/cli/building-the-app.md @@ -22,7 +22,7 @@ Before the app can be tested, it must be built. ```bash -npm run owl build -- --platform ios --config ./owl.config.json +npx owl build --platform ios --config ./owl.config.json ``` diff --git a/docs/cli/testing-the-app.md b/docs/cli/testing-the-app.md index d6aa9cc2..19267fae 100644 --- a/docs/cli/testing-the-app.md +++ b/docs/cli/testing-the-app.md @@ -41,7 +41,7 @@ The baseline images will be automatically generated. To regenerate the baseline ```bash -npm run owl test -- --platform ios +npx owl test --platform ios ``` @@ -62,7 +62,7 @@ Update the baseline images ```bash -npm run owl test -- --platform ios --update +npx owl test --platform ios --update ``` @@ -83,7 +83,7 @@ Update the baseline images ```bash -npm run owl test -- --platform ios --config ./owl.config.json +npx owl test --platform ios --config ./owl.config.json ``` diff --git a/docs/introduction/getting-started.md b/docs/introduction/getting-started.md index aed40781..3311bfa8 100644 --- a/docs/introduction/getting-started.md +++ b/docs/introduction/getting-started.md @@ -66,7 +66,7 @@ Before the app can be tested, it must be built. ```bash -npm run owl build -- --platform ios +npx owl build --platform ios ``` @@ -98,7 +98,7 @@ Test against the baseline images (will create the baseline images if they don't ```bash -npm run owl test -- --platform ios +npx owl test --platform ios ``` @@ -117,7 +117,7 @@ Update the baseline images ```bash -npm run owl test -- --platform ios --update +npx owl test --platform ios --update ```