Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ jobs:
- name: Build package
run: npm run build

# - name: Npm Run Test
# run: npm run test
- name: Npm Run Test
run: npm run test

- name: Deploy on develop branch
if: github.ref == 'refs/heads/develop'
Expand Down
8 changes: 7 additions & 1 deletion e2e/claims.service.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ import { shutDownIpfsDaemon, spawnIpfsDaemon } from './utils/setup-ipfs';

const { namehash, id } = utils;

const provider = new providers.JsonRpcProvider(rpcUrl);
let provider: providers.JsonRpcProvider;
try {
provider = new providers.JsonRpcProvider(rpcUrl);
} catch (e) {
console.log(`rpc url ${rpcUrl}`);
throw e;
}
const staticIssuer = Wallet.createRandom().connect(provider);
const staticIssuerDID = `did:${Methods.Erc1056}:${Chain.VOLTA}:${staticIssuer.address}`;
const dynamicIssuer = Wallet.createRandom().connect(provider);
Expand Down
3 changes: 2 additions & 1 deletion e2e/utils/setup-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ const { parseEther, namehash } = utils;
const { abi: didContractAbi, bytecode: didContractBytecode } = ethrReg;

const GANACHE_PORT = 8544;
export const rpcUrl = `http://localhost:${GANACHE_PORT}`;
export const rpcUrl = `http://127.0.0.1:${GANACHE_PORT}`;

const provider = new JsonRpcProvider(rpcUrl);

let didRegistry: Contract;
let ensRegistry: ENSRegistry;
let ensResolver: RoleDefinitionResolver;
Expand Down
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ module.exports = {
'\\.(mjs|js)$': 'babel-jest',
},
transformIgnorePatterns: [
'node_modules/!(@energyweb/ekc)',
'node_modules/.+\\.!(mjs)$',
'node_modules/(?!@energyweb/ekc)',
'node_modules/.+(?!\\.mjs)$',
],
testEnvironment: 'node',
testRegex: '(/(e2e|src)/(.|\\.)*\\.(e2e|spec)\\.ts$)',
Expand Down
Loading