From c1caf53902ede9874d849c241b71100a4b6488fa Mon Sep 17 00:00:00 2001 From: Nazar Hussain Date: Fri, 17 Jan 2025 17:10:01 +0100 Subject: [PATCH] Update the tests --- packages/as-sha256/scripts/codegen.ts | 2 +- packages/ssz/test/spec/generic/index.test.ts | 4 ++-- packages/ssz/test/spec/ssz_static.ts | 4 ++-- packages/ssz/test/spec/testRunner.ts | 4 ++-- packages/ssz/test/specTestVersioning.ts | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/as-sha256/scripts/codegen.ts b/packages/as-sha256/scripts/codegen.ts index 4d5f56e1..6168c8d3 100644 --- a/packages/as-sha256/scripts/codegen.ts +++ b/packages/as-sha256/scripts/codegen.ts @@ -2,7 +2,7 @@ // we preprocess the binary data into valid javascript code, a single exportable object. // which can be statically imported. -import fs from "fs"; +import fs from "node:fs"; interface BinaryMeta { input: string; diff --git a/packages/ssz/test/spec/generic/index.test.ts b/packages/ssz/test/spec/generic/index.test.ts index 86ba908f..4a4cbe6c 100644 --- a/packages/ssz/test/spec/generic/index.test.ts +++ b/packages/ssz/test/spec/generic/index.test.ts @@ -1,6 +1,6 @@ import {describe, it, expect} from "vitest"; -import path from "path"; -import fs from "fs"; +import path from "node:path"; +import fs from "node:fs"; import {ethereumConsensusSpecsTests} from "../../specTestVersioning.js"; import {parseSszGenericValidTestcase, parseSszGenericInvalidTestcase} from "../testRunner.js"; import {runValidSszTest} from "../runValidTest.js"; diff --git a/packages/ssz/test/spec/ssz_static.ts b/packages/ssz/test/spec/ssz_static.ts index 718d7d40..b291589c 100644 --- a/packages/ssz/test/spec/ssz_static.ts +++ b/packages/ssz/test/spec/ssz_static.ts @@ -1,5 +1,5 @@ -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; import {describe, it, vi} from "vitest"; import {isCompositeType, Type} from "../../src/index.js"; import {ssz} from "../lodestarTypes/index.js"; diff --git a/packages/ssz/test/spec/testRunner.ts b/packages/ssz/test/spec/testRunner.ts index 7154014f..e5f2a527 100644 --- a/packages/ssz/test/spec/testRunner.ts +++ b/packages/ssz/test/spec/testRunner.ts @@ -1,5 +1,5 @@ -import path from "path"; -import fs from "fs"; +import path from "node:path"; +import fs from "node:fs"; import {uncompress} from "snappyjs"; import jsyaml from "js-yaml"; import {schema} from "./sszYamlSchema.js"; diff --git a/packages/ssz/test/specTestVersioning.ts b/packages/ssz/test/specTestVersioning.ts index ac953dc9..b9c564dc 100644 --- a/packages/ssz/test/specTestVersioning.ts +++ b/packages/ssz/test/specTestVersioning.ts @@ -1,4 +1,4 @@ -import path from "path"; +import path from "node:path"; import url from "url"; import {DownloadTestsOptions} from "@lodestar/spec-test-util/downloadTests";