From 3209514dcad28c803a93badc196843775e21bef4 Mon Sep 17 00:00:00 2001 From: "Gudmundur D. Haraldsson" Date: Fri, 17 Nov 2023 14:11:50 +0000 Subject: [PATCH] Create TESTING.md --- docs/TESTING.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 docs/TESTING.md diff --git a/docs/TESTING.md b/docs/TESTING.md new file mode 100644 index 000000000..2c8f832cd --- /dev/null +++ b/docs/TESTING.md @@ -0,0 +1,17 @@ +# Testing + +# Manual testing + +## Local development + +To test against a local instance of the WPVIP API, you can use the `API_HOST` environment variable. Unset the `VIP_PROXY` variable as well. + +Examples: + +```bash +VIP_PROXY="" API_HOST=http://localhost:4000 node ./dist/bin/vip + +VIP_PROXY="" API_HOST=http://localhost:4000 node ./dist/bin/vip app + +VIP_PROXY="" API_HOST=http://localhost:4000 node ./dist/bin/vip -- wp option get home +```