Skip to content

Commit

Permalink
run a local DWN instance and use it for some (all?) relevant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
finn-tbd committed Jul 28, 2023
1 parent 96befd9 commit 6634283
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:

- name: Run tests for all packages
run: npm run test:node --ws -- -i -f ssi --color
env:
DWN_URL: http://localhost:3000

- name: Upload test coverage to Codecov
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { webcrypto } from 'node:crypto';
if (!globalThis.crypto) globalThis.crypto = webcrypto;

let did: string;
let dwnNodes: string[] = ['https://dwn.tbddev.org/dwn0'];
let dwnNodes: string[] = [process.env.DWN_URL || 'https://dwn.tbddev.org/dwn0'];
// let dwnNodes: string[] = ['http://localhost:3000'];
let testAgent: TestAgent;

Expand Down
2 changes: 1 addition & 1 deletion packages/web5-user-agent/tests/fixtures/test-profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { TestProfileOptions } from '../common/utils/test-user-agent.js';

import { generateKeyPair } from '@decentralized-identity/ion-tools';

export const dwnNodes = ['https://dwn.tbddev.org/dwn0'];
export const dwnNodes = [process.env.DWN_URL || 'https://dwn.tbddev.org/dwn0'];
// const dwnNodes = ['http://localhost:3000'];

export const keyIds = {
Expand Down
2 changes: 1 addition & 1 deletion packages/web5/tests/fixtures/test-profiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { TestProfileOptions } from '../test-utils/test-user-agent.js';

import { generateKeyPair } from '@decentralized-identity/ion-tools';

const dwnNodes = ['https://dwn.tbddev.org/dwn0'];
const dwnNodes = [process.env.DWN_URL || 'https://dwn.tbddev.org/dwn0'];
// const dwnNodes = ['http://localhost:3000'];

export const keyIds = {
Expand Down

0 comments on commit 6634283

Please sign in to comment.