diff --git a/.wp-env.json b/.wp-env.json new file mode 100644 index 00000000..dafab87e --- /dev/null +++ b/.wp-env.json @@ -0,0 +1,5 @@ +{ + "plugins": [ + "." + ] +} diff --git a/README.md b/README.md index b64e41b5..fd93719d 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ https://gutenberg-content-api-test.go-vip.net/wp-json/vip-content-api/v1/posts/< - Example WordPress post with heading, quote, separator, and media-text blocks                                                                                        + Example WordPress post with heading, quote, separator, and media-text blocks                                                                                                                @@ -135,3 +135,13 @@ Content API result: ] } ``` + +## Tests + +Run tests locally with [`wp-env`][https://developer.wordpress.org/block-editor/reference-guides/packages/packages-env/] and Docker: + +``` +wp-env start +composer install +composer run test +```