Skip to content

Commit 1576e18

Browse files
committed
test(smoke): use node:crypto generateKeyPairSync (fix ESM crypto import)
1 parent e7e1597 commit 1576e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/smoke.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function __b64(s){ return Buffer.from(s, "utf8").toString("base64"); }
1212

1313
// Create an ephemeral Ed25519 keypair so the runtime can mint receipts during smoke.
1414
// This avoids depending on developer machine env vars.
15-
const { privateKey: __smokePrivKey, publicKey: __smokePubKey } = crypto.generateKeyPairSync("ed25519");
15+
const { privateKey: __smokePrivKey, publicKey: __smokePubKey } = generateKeyPairSync("ed25519");
1616
const __smokePrivPem = __smokePrivKey.export({ format: "pem", type: "pkcs8" });
1717
const __smokePubPem = __smokePubKey.export({ format: "pem", type: "spki" });
1818
const __smokePrivB64 = __b64(__smokePrivPem);

0 commit comments

Comments
 (0)