Skip to content

Files

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 3, 2025
Mar 27, 2025
Oct 6, 2023
Sep 4, 2024
Sep 4, 2024
Oct 6, 2023
Oct 6, 2023
Sep 4, 2024
Mar 27, 2025
Mar 27, 2025
Mar 27, 2025
Sep 11, 2024
Sep 11, 2024
Sep 4, 2024
Mar 27, 2025
Sep 4, 2024
Mar 27, 2025
Mar 27, 2025
Mar 27, 2025
Jan 26, 2024
Jan 19, 2024
Jan 26, 2024
Oct 6, 2023
Sep 5, 2023

Tests

Add one test file per scenario. You can run them in isolation with:

node tests/post-token-set.test.js

All tests are run together in tests/index.js, which can be executed with ava

npx ava tests/index.js

or with npm

npm test

How the tests work

The output from the tests is captured into a snapshot (tests/snapshots/index.js.md). It includes all requests sent by our scripts to verify it's working correctly and to prevent regressions.

How to add a new test

We have tests both for the main.js and post.js scripts.