From 0c79c2c39b3d776b95a7593b0a46dd5ce610cec1 Mon Sep 17 00:00:00 2001 From: Joshua Parkin Date: Wed, 18 Oct 2023 20:00:35 +0100 Subject: [PATCH] remove crypto import in tests & have tests/js use link:../core ad4m --- tests/js/package.json | 2 +- tests/js/tests/integration.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/js/package.json b/tests/js/package.json index 2a6e071b5..ea29bade1 100644 --- a/tests/js/package.json +++ b/tests/js/package.json @@ -24,7 +24,7 @@ "devDependencies": { "@apollo/client": "3.7.10", "@peculiar/webcrypto": "^1.1.7", - "@perspect3vism/ad4m": "*", + "@perspect3vism/ad4m": "link:../../core", "@types/chai": "*", "@types/chai-as-promised": "*", "@types/expect": "*", diff --git a/tests/js/tests/integration.test.ts b/tests/js/tests/integration.test.ts index 99d526136..fae54ac92 100644 --- a/tests/js/tests/integration.test.ts +++ b/tests/js/tests/integration.test.ts @@ -12,7 +12,7 @@ import languageTests from "./language"; import expressionTests from "./expression"; import neighbourhoodTests from "./neighbourhood"; import runtimeTests from "./runtime"; -import { Crypto } from "@peculiar/webcrypto" +//import { Crypto } from "@peculiar/webcrypto" import directMessageTests from "./direct-messages"; import agentLanguageTests from "./agent-language"; import socialDNATests from "./social-dna-flow"; @@ -25,7 +25,7 @@ const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); //@ts-ignore -global.crypto = new Crypto(); +//global.crypto = new Crypto(); const TEST_DIR = `${__dirname}/../tst-tmp`