npm test
TEST_CHARGIFY_SKIP_MOCKS=true \
TEST_CHARGIFY_API_KEY=<api-key> \
TEST_CHARGIFY_SUBDOMAIN=<subdomain> \
TEST_CHARGIFY_PRODUCT_FAMILY_ID=<product-family-id> \
TEST_CHARGIFY_COMPONENT_1_ID=<component-id> \
TEST_CHARGIFY_COMPONENT_1_HANDLE=<component-handle> \
TEST_CHARGIFY_USAGE_1_COMPONENT_ID=<component-id> \
TEST_CHARGIFY_USAGE_1_SUBSCRIPTION_ID=<subscription-id> \
TEST_CHARGIFY_PRICE_POINTS_1_COMPONENT_ID=<component-id> \
npm test
The npm module url
is used in place of the NodeJS built-in url
module.
NodeJS has deprecated url.format
and plans to remove it after the 13.0.0 release.