diff --git a/package.json b/package.json index 5cae1323..066b084b 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "build": "yarn clean && lerna run build", "lint": "lerna run lint", "check-types": "lerna run check-types", - "test:unit": "lerna run test:unit", "test:browsers": "lerna run test:browsers", "test": "lerna run test", "benchmark:files": "NODE_OPTIONS=--max_old_space_size=4096 benchmark --config .benchrc.yaml", diff --git a/packages/as-sha256/scripts/codegen.ts b/packages/as-sha256/scripts/codegen.ts index d15b813a..57388d86 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"; const INPUT = "build/optimized.wasm"; const OUTPUT = "src/wasmCode.ts"; diff --git a/packages/ssz/test/spec/downloadTests.ts b/packages/ssz/test/spec/downloadTests.ts index 9c69fbe2..29b68c30 100644 --- a/packages/ssz/test/spec/downloadTests.ts +++ b/packages/ssz/test/spec/downloadTests.ts @@ -1,5 +1,5 @@ -import fs from "fs"; -import path from "path"; +import fs from "node:fs"; +import path from "node:path"; import {execSync} from "child_process"; import {SPEC_TEST_LOCATION, SPEC_TEST_VERSION, SPEC_TEST_REPO_URL} from "../specTestVersioning"; diff --git a/packages/ssz/test/spec/generic/index.test.ts b/packages/ssz/test/spec/generic/index.test.ts index 0d03f343..39c68e2a 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 {SPEC_TEST_LOCATION} from "../../specTestVersioning"; import {parseSszGenericValidTestcase, parseSszGenericInvalidTestcase} from "../testRunner"; import {runValidSszTest} from "../runValidTest"; diff --git a/packages/ssz/test/spec/ssz_static.ts b/packages/ssz/test/spec/ssz_static.ts index 100a1200..f20253f0 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"; import {ssz} from "../lodestarTypes"; diff --git a/packages/ssz/test/spec/testRunner.ts b/packages/ssz/test/spec/testRunner.ts index 1310fe88..aa236db8 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"; diff --git a/packages/ssz/test/specTestVersioning.ts b/packages/ssz/test/specTestVersioning.ts index eaa96504..ff21c2cf 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"; // WARNING! Don't move or rename this file !!! //