From ecb9a84619abda8c1670cb36209bafc30806190c Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 31 May 2024 14:35:47 +0000 Subject: [PATCH 1/2] Ignore localConfig & add example config. --- .gitignore | 1 + localConfig.example.cjs | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 localConfig.example.cjs diff --git a/.gitignore b/.gitignore index 606c993..d12efc8 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ reports/** credentials/*.json .vscode .localImplementationsConfig.cjs +localConfig.cjs diff --git a/localConfig.example.cjs b/localConfig.example.cjs new file mode 100644 index 0000000..82c5f1b --- /dev/null +++ b/localConfig.example.cjs @@ -0,0 +1,32 @@ +/*! + * Copyright (c) 2022-2024 Digital Bazaar, Inc. + * SPDX-License-Identifier: BSD-3-Clause + */ +// Rename this file to .localConfig.cjs +// you can specify a BASE_URL before running the tests such as: +// BASE_URL=http://localhost:40443/zDdfsdfs npm test +const baseUrl = process.env.BASE_URL || 'https://localhost:34557'; + +module.exports = { + settings: { + enableInteropTests: false, // default + testAllImplementations: false // default + }, + implementations: [{ + name: 'My Company', + implementation: 'My Implementation Name', + issuers: [{ + id: 'did:myMethod:implementation:issuer:id', + endpoint: `${baseUrl}/credentials/issue`, + supports: { + vc: ['1.1', '2.0'] + }, + tags: ['Ed25519Signature2020', 'localhost'] + }], + verifiers: [{ + id: 'did:myMethod:implementation:verifier:id', + endpoint: `${baseUrl}/credentials/verify`, + tags: ['Ed25519Signature2020', 'localhost'] + }] + }] +}; From b01b141b4ae0481af1994b70517fa46a2b297836 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 31 May 2024 14:43:16 +0000 Subject: [PATCH 2/2] Lint both js and cjs files. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d6e30ac..06cba1c 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ }, "scripts": { "test": "mocha tests/ --reporter @digitalbazaar/mocha-w3c-interop-reporter --reporter-options abstract=\"$PWD/abstract.hbs\",reportDir=\"$PWD/reports\",respec=\"$PWD/respecConfig.json\",templateData=\"$PWD/reports/index.json\",title=\"Ed25519Signature 2020 Interoperability Report 1.0\",suiteLog='./suite.log' --timeout 15000 --preserve-symlinks", - "lint": "eslint ." + "lint": "eslint --ext .js,.cjs ." }, "repository": { "type": "git",