diff --git a/tests/common-scenario-validator.ts b/tests/common-scenario-validator.ts index 46050b4..4d755b2 100644 --- a/tests/common-scenario-validator.ts +++ b/tests/common-scenario-validator.ts @@ -9,10 +9,10 @@ import fetch from 'node-fetch'; import { createJsonRpcRequest } from '../src/lib/json-rpc.js'; import { getFileAsReadStream } from './utils.js'; import { v4 as uuidv4 } from 'uuid'; +import { webcrypto } from 'node:crypto'; import { Cid, DwnConstant, Jws, ProtocolsConfigure, RecordsRead, RecordsWrite, TestDataGenerator } from '@tbd54566975/dwn-sdk-js'; - // node.js 18 and earlier needs globalThis.crypto polyfill if (!globalThis.crypto) { // @ts-ignore diff --git a/tests/scenarios/web5-connect.spec.ts b/tests/scenarios/web5-connect.spec.ts index 6199048..969c5ab 100644 --- a/tests/scenarios/web5-connect.spec.ts +++ b/tests/scenarios/web5-connect.spec.ts @@ -27,6 +27,7 @@ describe('Web5 Connect scenarios', function () { // and dwn-server.spec.ts already uses LevelDB. dwnServerConfig.messageStore = 'sqlite://', dwnServerConfig.dataStore = 'sqlite://', + dwnServerConfig.resumableTaskStore = 'sqlite://', dwnServerConfig.eventLog = 'sqlite://', dwnServer = new DwnServer({ config: dwnServerConfig });