decentralized-identity/dwn-server

Remove direct use of default `config` to avoid config changes bleed/pollute between tests

Open

#144 opened on Jul 10, 2024

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (42 forks)github user discovery
good first issuetest

Repository metrics

Stars
 (41 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Remove direct use of default config to avoid config changes bleed/pollute between tests, should clone before modify.

See http-api.spec.ts as a prime example of misuse. As a results, tests like dynamic-plugin-loading.spec.ts need to override the config explicitly to ensure reliability.

Contributor guide