Skip to content

Commit fac245f

Browse files
committed
Ignore localConfig & add example config.
1 parent f627dc5 commit fac245f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ reports/**
1818
credentials/*.json
1919
.vscode
2020
.localImplementationsConfig.cjs
21+
localConfig.cjs

localConfig.example.cjs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*!
2+
* Copyright (c) 2022-2024 Digital Bazaar, Inc.
3+
* SPDX-License-Identifier: BSD-3-Clause
4+
*/
5+
// Rename this file to .localConfig.cjs
6+
// you can specify a BASE_URL before running the tests such as:
7+
// BASE_URL=http://localhost:40443/zDdfsdfs npm test
8+
const baseUrl = process.env.BASE_URL || 'https://localhost:34557';
9+
10+
module.exports = {
11+
settings: {
12+
enableInteropTests: false, // default
13+
testAllImplementations: false // default
14+
},
15+
implementations: [{
16+
name: 'My Company',
17+
implementation: 'My Implementation Name',
18+
issuers: [{
19+
id: 'did:myMethod:implementation:issuer:id',
20+
endpoint: `${baseUrl}/credentials/issue`,
21+
supports: {
22+
vc: ['1.1', '2.0']
23+
},
24+
tags: ['Ed25519Signature2020', 'localhost']
25+
}],
26+
verifiers: [{
27+
id: 'did:myMethod:implementation:verifier:id',
28+
endpoint: `${baseUrl}/credentials/verify`,
29+
tags: ['Ed25519Signature2020', 'localhost']
30+
}]
31+
}]
32+
};

0 commit comments

Comments
 (0)