From a7f19a1b79a5daf36a2232415bdaf1bab068a7ce Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sun, 16 Jan 2022 11:51:45 -0500 Subject: [PATCH] docs(setup/local): update [skip ci] --- .github/readme/partials/documentation/setup/local.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/readme/partials/documentation/setup/local.md b/.github/readme/partials/documentation/setup/local.md index 0a22e26b..b88e126a 100644 --- a/.github/readme/partials/documentation/setup/local.md +++ b/.github/readme/partials/documentation/setup/local.md @@ -35,4 +35,11 @@ For quick testing, it is advised to directly craft URLs, rather than using the w *Example: test a new plugin* ```shell https://localhost:{port}/username?base=0&newplugin=1&newplugin.option1=hello&newplugin.option2=world) -``` \ No newline at end of file +``` + +## *️⃣ Testing changes + +Testing is done through [jest](https://github.com/facebook/jest) framework. + +To avoid consuming APIs requests and causing additional charges on external services, data are [mocked](/tests/mocks/index.mjs) using [JavaScript Proxies](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) and [Faker.js](https://github.com/marak/Faker.js/) with randomly generated data. +