Skip to content

Commit

Permalink
Rename vcApiTestImplementationsConfig.cjs to
Browse files Browse the repository at this point in the history
`localImplementationsConfig.cjs`.
  • Loading branch information
JSAssassin committed Dec 27, 2023
1 parent 06ff1fc commit ba5a93e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# vc-test-suite-implementations Changelog

## 3.0.0 - 2023-12-27

### Changed
- **BREAKING**: Rename `vcApiTestImplementationsConfig.cjs` config for testing
localhost implementations to `localImplementationsConfig.cjs`.

## 2.1.0 - 2023-12-18

### Removed
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ If you need to test implementations for endpoints running locally, create a
config file in the root dir of the test suite:

```
.vcApiTestImplementationsConfig.cjs
.localImplementationsConfig.cjs
```

This file must be a CommonJS module that exports an array of implementations:

```js
// file .vcApiTestImplementationsConfig.cjs
// file .localImplementationsConfig.cjs
module.exports = [{
"name": "My Company",
"implementation": "My Implementation Name",
Expand All @@ -128,7 +128,7 @@ module.exports = [{
To run the tests only against the localhost implementation, update the test
suite to filter implementations using the specified tag in your config file.

For instance, if your `.vcApiTestImplementationsConfig.cjs` looks like above
For instance, if your `.localImplementationsConfig.cjs` looks like above
in the `vc-api-issuer-test-suite`, you can adjust the
[tag](https://github.com/w3c-ccg/vc-api-issuer-test-suite/blob/main/tests/10-issuer.js#L14)
to filter the implementation by `localhost` rather than `vc-api` and
Expand Down
2 changes: 1 addition & 1 deletion implementations/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const dir = requireDir('./');
const getLocalImplementations = () => {
try {
const path = join(
appRoot.toString(), '.vcApiTestImplementationsConfig.cjs');
appRoot.toString(), '.localImplementationsConfig.cjs');
return require(path);
} catch(e) {
if(e?.code === 'MODULE_NOT_FOUND') {
Expand Down

0 comments on commit ba5a93e

Please sign in to comment.