Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@inrupt/internal-test-env
Advanced tools
This package provides various test environment utilities needed for jest when using the Inrupt SDKs
This package contains utilities to help setup automated testing environments.
npm install --save-dev @inrupt/internal-test-env
Add the function import as needed.
import "@inrupt/internal-test-env"
This helper exposes the following:
getNodeTestingEnvironment
getBrowserTestingEnvironment
These two functions will load from the environment variables as follows:
E2E_TEST_ENVIRONMENT
: name of the target environment, used for information purpose.
E.g., ESS Dev-Next
E2E_TEST_IDP
: IRI of the OpenID Provider where the test session will be retrieved.E2E_TEST_FEATURE_*
will be
made available in a feature flags dictionary keyed by *
. E.g., E2E_TEST_FEATURE_NOTIFICATIONS
being defined will result in features["NOTIFICATIONS"]
to capture the associated
value.get*TestingEnvironment
call:
E2E_TEST_NOTIFICATION_GATEWAY
E2E_TEST_NOTIFICATION_PROTOCOL
E2E_TEST_VC_PROVIDER
E2E_TEST_OWNER_CLIENT_ID
E2E_TEST_OWNER_CLIENT_SECRET
E2E_TEST_REQUESTOR_CLIENT_ID
E2E_TEST_REQUESTOR_CLIENT_SECRET
E2E_TEST_USER
E2E_TEST_PASSWORD
FAQs
This package provides various test environment utilities needed for jest when using the Inrupt SDKs
The npm package @inrupt/internal-test-env receives a total of 2,522 weekly downloads. As such, @inrupt/internal-test-env popularity was classified as popular.
We found that @inrupt/internal-test-env demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.