diff options
Diffstat (limited to 'test/backend-test/README.md')
-rw-r--r-- | test/backend-test/README.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/backend-test/README.md b/test/backend-test/README.md new file mode 100644 index 0000000..775ffb7 --- /dev/null +++ b/test/backend-test/README.md @@ -0,0 +1,22 @@ +# Node.js Test Runner + +Documentation: https://nodejs.org/api/test.html + +Create a test file in this directory with the name `*.js`. + +## Template + +```js +const test = require("node:test"); +const assert = require("node:assert"); + +test("Test name", async (t) => { + assert.strictEqual(1, 1); +}); +``` + +## Run + +```bash +npm run test-backend +``` |