From 1c0c23c084e389390ce00e5a421267a4f8bdef0d Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Mon, 13 Jan 2025 16:58:44 -0500 Subject: [PATCH] tests: added JSON-RPC tests to web browser CI --- lib.commonjs/_tests/index.d.ts | 2 +- lib.commonjs/_tests/index.d.ts.map | 2 +- lib.commonjs/_tests/index.js | 4 ++-- lib.commonjs/_tests/index.js.map | 2 +- lib.esm/_admin/test-browser.d.ts.map | 2 +- lib.esm/_admin/test-browser.js | 11 +++++++++-- lib.esm/_admin/test-browser.js.map | 2 +- lib.esm/_tests/index.d.ts | 2 +- lib.esm/_tests/index.d.ts.map | 2 +- lib.esm/_tests/index.js | 4 ++-- lib.esm/_tests/index.js.map | 2 +- src.ts/_admin/test-browser.ts | 14 +++++++++++--- src.ts/_tests/index.ts | 4 ++-- 13 files changed, 34 insertions(+), 19 deletions(-) diff --git a/lib.commonjs/_tests/index.d.ts b/lib.commonjs/_tests/index.d.ts index 026bda3b1..54af71e60 100644 --- a/lib.commonjs/_tests/index.d.ts +++ b/lib.commonjs/_tests/index.d.ts @@ -7,7 +7,7 @@ import "./test-hash-typeddata.js"; import "./test-providers-avatar.js"; import "./test-providers-ccip.js"; import "./test-providers-fallback.js"; -import "./test-providers-send.js"; +import "./test-providers-jsonrpc.js"; import "./test-providers-wildcard.js"; import "./test-rlp.js"; import "./test-transaction.js"; diff --git a/lib.commonjs/_tests/index.d.ts.map b/lib.commonjs/_tests/index.d.ts.map index d9665c466..ae26fc560 100644 --- a/lib.commonjs/_tests/index.d.ts.map +++ b/lib.commonjs/_tests/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src.ts/_tests/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,oBAAoB,CAAC;AAE5B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;AACxB,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAIlC,OAAO,8BAA8B,CAAC;AAEtC,OAAO,0BAA0B,CAAC;AAClC,OAAO,8BAA8B,CAAC;AACtC,OAAO,eAAe,CAAA;AACtB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src.ts/_tests/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,oBAAoB,CAAC;AAE5B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;AACxB,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAIlC,OAAO,8BAA8B,CAAC;AACtC,OAAO,6BAA6B,CAAC;AAErC,OAAO,8BAA8B,CAAC;AACtC,OAAO,eAAe,CAAA;AACtB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC"} \ No newline at end of file diff --git a/lib.commonjs/_tests/index.js b/lib.commonjs/_tests/index.js index e8f7301a2..9134a0c9e 100644 --- a/lib.commonjs/_tests/index.js +++ b/lib.commonjs/_tests/index.js @@ -13,8 +13,8 @@ require("./test-providers-ccip.js"); //import "./test-providers-errors.js"; //import "./test-providers-extra.js"; require("./test-providers-fallback.js"); -//import "./test-providers-jsonrpc.js"; -require("./test-providers-send.js"); +require("./test-providers-jsonrpc.js"); +//import "./test-providers-send.js"; require("./test-providers-wildcard.js"); require("./test-rlp.js"); require("./test-transaction.js"); diff --git a/lib.commonjs/_tests/index.js.map b/lib.commonjs/_tests/index.js.map index dca1895de..09cb5e072 100644 --- a/lib.commonjs/_tests/index.js.map +++ b/lib.commonjs/_tests/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/_tests/index.ts"],"names":[],"mappings":";;AAAA,yBAAuB;AACvB,6BAA0B;AAC1B,8BAA4B;AAC5B,oCAAoC;AACpC,4BAA0B;AAC1B,0BAAwB;AACxB,oCAAkC;AAClC,sCAAoC;AACpC,oCAAkC;AAClC,oCAAoC;AACpC,sCAAsC;AACtC,qCAAqC;AACrC,wCAAsC;AACtC,uCAAuC;AACvC,oCAAkC;AAClC,wCAAsC;AACtC,yBAAsB;AACtB,iCAA+B;AAC/B,iCAA+B;AAC/B,gCAA8B;AAC9B,iCAA+B;AAC/B,gCAA8B;AAC9B,4BAA0B;AAC1B,+BAA6B;AAC7B,iCAA+B;AAC/B,qCAAmC;AACnC,+BAA6B"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/_tests/index.ts"],"names":[],"mappings":";;AAAA,yBAAuB;AACvB,6BAA0B;AAC1B,8BAA4B;AAC5B,oCAAoC;AACpC,4BAA0B;AAC1B,0BAAwB;AACxB,oCAAkC;AAClC,sCAAoC;AACpC,oCAAkC;AAClC,oCAAoC;AACpC,sCAAsC;AACtC,qCAAqC;AACrC,wCAAsC;AACtC,uCAAqC;AACrC,oCAAoC;AACpC,wCAAsC;AACtC,yBAAsB;AACtB,iCAA+B;AAC/B,iCAA+B;AAC/B,gCAA8B;AAC9B,iCAA+B;AAC/B,gCAA8B;AAC9B,4BAA0B;AAC1B,+BAA6B;AAC7B,iCAA+B;AAC/B,qCAAmC;AACnC,+BAA6B"} \ No newline at end of file diff --git a/lib.esm/_admin/test-browser.d.ts.map b/lib.esm/_admin/test-browser.d.ts.map index 02a6a84d8..ce02d0f19 100644 --- a/lib.esm/_admin/test-browser.d.ts.map +++ b/lib.esm/_admin/test-browser.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"test-browser.d.ts","sourceRoot":"","sources":["../../src.ts/_admin/test-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;AAQH,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAE/B,OAAO,EAAgB,MAAM,EAAE,MAAM,MAAM,CAAC;AAuB5C,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAShD;AAOD,qBAAa,UAAU;;IACnB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;gBAclB,GAAG,EAAE,MAAM;IA6EvB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAKzB;IAED,IAAI,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAE1B;IAEK,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAO/C,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAahD,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG7C;AAED,MAAM,MAAM,OAAO,GAAG;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,CAAC;AAkCF,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CA0GtE"} \ No newline at end of file +{"version":3,"file":"test-browser.d.ts","sourceRoot":"","sources":["../../src.ts/_admin/test-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;;AAQH,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAE/B,OAAO,EAAgB,MAAM,EAAE,MAAM,MAAM,CAAC;AAuB5C,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAShD;AAOD,qBAAa,UAAU;;IACnB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;gBAclB,GAAG,EAAE,MAAM;IA6EvB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAKzB;IAED,IAAI,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAE1B;IAEK,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAO/C,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAahD,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG7C;AAED,MAAM,MAAM,OAAO,GAAG;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,CAAC;AAyCF,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CA0GtE"} \ No newline at end of file diff --git a/lib.esm/_admin/test-browser.js b/lib.esm/_admin/test-browser.js index 00d508fe6..9aea83d04 100644 --- a/lib.esm/_admin/test-browser.js +++ b/lib.esm/_admin/test-browser.js @@ -179,7 +179,14 @@ const TestData = (function () { data.push(` return JSON.parse(ethers.toUtf8String(result))`); data.push(`}`); data.push(``); - data.push(`export const FAUCET_PRIVATEKEY = ${JSON.stringify(process.env.FAUCET_PRIVATEKEY)};`); + try { + data.push(`export const FAUCET_PRIVATEKEY = ${JSON.stringify(process.env.FAUCET_PRIVATEKEY || "0x0123456789012345678901234567890123456789")};`); + } + catch (e) { + console.log(e); + data.push(`export const FAUCET_PRIVATEKEY = "0x0123456789012345678901234567890123456789";`); + } + data.push(``); return data.join("\n"); })(); export function start(_root, options) { @@ -302,7 +309,7 @@ export function start(_root, options) { throw new Error("no installed browser found"); } const cmd = cmds[0]; - const args = ["--headless", "--disable-gpu", "--remote-debugging-port=8023"]; + const args = ["--headless", "--disable-gpu", "--remote-debugging-port=8022"]; const browser = child_process.spawn(cmd, args); let url = await new Promise((resolve, reject) => { browser.stdout.on("data", (data) => { diff --git a/lib.esm/_admin/test-browser.js.map b/lib.esm/_admin/test-browser.js.map index 0f2b1fb81..948c19f36 100644 --- a/lib.esm/_admin/test-browser.js.map +++ b/lib.esm/_admin/test-browser.js.map @@ -1 +1 @@ -{"version":3,"file":"test-browser.js","sourceRoot":"","sources":["../../src.ts/_admin/test-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,gDAAgD;AAEhD,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,aAAa,MAAM,eAAe,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAU,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,KAAK,GAA2B;IACpC,GAAG,EAAE,UAAU;IACf,OAAO,EAAE,uBAAuB;IAChC,GAAG,EAAE,+BAA+B;IACpC,GAAG,EAAE,WAAW;IAChB,IAAI,EAAE,WAAW;IACjB,GAAG,EAAE,cAAc;IACnB,E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AK,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"test-browser.js","sourceRoot":"","sources":["../../src.ts/_admin/test-browser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,gDAAgD;AAEhD,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,aAAa,MAAM,eAAe,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAU,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAErC,MAAM,KAAK,GAA2B;IACpC,GAAG,EAAE,UAAU;IACf,OAAO,EAAE,uBAAuB;IAChC,GAAG,EAAE,+BAA+B;IACpC,GAAG,EAAE,WAAW;IAChB,IAAI,EAAE,WAAW;IACjB,GAAG,EAAE,cAAc;IACnB,EAAE,EAAE,wBAAwB;IAC5B,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,kBAAkB;IACxB,GAAG,EAAE,kBAAkB;IACvB,EAAE,EAAE,eAAe;IACnB,GAAG,EAAE,WAAW;IAChB,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,wBAAwB;IAC7B,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,uBAAuB;CAC9B,CAAC;AAEF,MAAM,UAAU,OAAO,CAAC,QAAgB;IACpC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;IAEpE,IAAI,IAAI,IAAI,IAAI,EAAE;QAChB,OAAO,CAAC,GAAG,CAAC,qBAAsB,QAAS,EAAE,CAAC,CAAC;QAC/C,OAAO,0BAA0B,CAAC;KACnC;IAED,OAAO,IAAI,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EAAE;gBACjC,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;gBACxD,IAAI,KAAK,EAAE;oBACP,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;oBAClB,OAAO;iBACV;aACJ;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEzB,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;IACpC,MAAM,OAAO,CAAC,KAAK,CAAC;IACpB,MAAM,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAG,CAAC,CAAC;IAC1C,MAAM,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;IAEjD,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,IAAI,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAC/B,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAEzB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACjB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IACrB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib.esm/_tests/index.d.ts b/lib.esm/_tests/index.d.ts index 026bda3b1..54af71e60 100644 --- a/lib.esm/_tests/index.d.ts +++ b/lib.esm/_tests/index.d.ts @@ -7,7 +7,7 @@ import "./test-hash-typeddata.js"; import "./test-providers-avatar.js"; import "./test-providers-ccip.js"; import "./test-providers-fallback.js"; -import "./test-providers-send.js"; +import "./test-providers-jsonrpc.js"; import "./test-providers-wildcard.js"; import "./test-rlp.js"; import "./test-transaction.js"; diff --git a/lib.esm/_tests/index.d.ts.map b/lib.esm/_tests/index.d.ts.map index d9665c466..ae26fc560 100644 --- a/lib.esm/_tests/index.d.ts.map +++ b/lib.esm/_tests/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src.ts/_tests/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,oBAAoB,CAAC;AAE5B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;AACxB,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAIlC,OAAO,8BAA8B,CAAC;AAEtC,OAAO,0BAA0B,CAAC;AAClC,OAAO,8BAA8B,CAAC;AACtC,OAAO,eAAe,CAAA;AACtB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src.ts/_tests/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,oBAAoB,CAAC;AAE5B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;AACxB,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAIlC,OAAO,8BAA8B,CAAC;AACtC,OAAO,6BAA6B,CAAC;AAErC,OAAO,8BAA8B,CAAC;AACtC,OAAO,eAAe,CAAA;AACtB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC"} \ No newline at end of file diff --git a/lib.esm/_tests/index.js b/lib.esm/_tests/index.js index 4b05c3f92..d05715f5b 100644 --- a/lib.esm/_tests/index.js +++ b/lib.esm/_tests/index.js @@ -11,8 +11,8 @@ import "./test-providers-ccip.js"; //import "./test-providers-errors.js"; //import "./test-providers-extra.js"; import "./test-providers-fallback.js"; -//import "./test-providers-jsonrpc.js"; -import "./test-providers-send.js"; +import "./test-providers-jsonrpc.js"; +//import "./test-providers-send.js"; import "./test-providers-wildcard.js"; import "./test-rlp.js"; import "./test-transaction.js"; diff --git a/lib.esm/_tests/index.js.map b/lib.esm/_tests/index.js.map index 48540e69f..2d92f7dcd 100644 --- a/lib.esm/_tests/index.js.map +++ b/lib.esm/_tests/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/_tests/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,oBAAoB,CAAC;AAC5B,oCAAoC;AACpC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;AACxB,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,oCAAoC;AACpC,sCAAsC;AACtC,qCAAqC;AACrC,OAAO,8BAA8B,CAAC;AACtC,uCAAuC;AACvC,OAAO,0BAA0B,CAAC;AAClC,OAAO,8BAA8B,CAAC;AACtC,OAAO,eAAe,CAAA;AACtB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src.ts/_tests/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,oBAAoB,CAAC;AAC5B,oCAAoC;AACpC,OAAO,kBAAkB,CAAC;AAC1B,OAAO,gBAAgB,CAAC;AACxB,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,0BAA0B,CAAC;AAClC,oCAAoC;AACpC,sCAAsC;AACtC,qCAAqC;AACrC,OAAO,8BAA8B,CAAC;AACtC,OAAO,6BAA6B,CAAC;AACrC,oCAAoC;AACpC,OAAO,8BAA8B,CAAC;AACtC,OAAO,eAAe,CAAA;AACtB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,qBAAqB,CAAC;AAC7B,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,qBAAqB,CAAC"} \ No newline at end of file diff --git a/src.ts/_admin/test-browser.ts b/src.ts/_admin/test-browser.ts index 0c070540b..e052b65ea 100644 --- a/src.ts/_admin/test-browser.ts +++ b/src.ts/_admin/test-browser.ts @@ -211,6 +211,7 @@ const TestData = (function() { const tag = filename.split(".")[0]; data.push(`fs.set(${ JSON.stringify(tag) }, ${ JSON.stringify(load(tag)) });`); } + data.push(`export function loadTests(tag) {`); data.push(` const data = fs.get(tag);`); data.push(` if (data == null) { throw new Error("missing tag: " + tag); }`); @@ -220,12 +221,18 @@ const TestData = (function() { data.push(` return JSON.parse(ethers.toUtf8String(result))`); data.push(`}`); data.push(``); - data.push(`export const FAUCET_PRIVATEKEY = ${ JSON.stringify(process.env.FAUCET_PRIVATEKEY) };`); + + try { + data.push(`export const FAUCET_PRIVATEKEY = ${ JSON.stringify(process.env.FAUCET_PRIVATEKEY || "0x0123456789012345678901234567890123456789") };`); + } catch (e) { + console.log(e); + data.push(`export const FAUCET_PRIVATEKEY = "0x0123456789012345678901234567890123456789";`); + } + data.push(``); return data.join("\n"); })(); - export function start(_root: string, options: Options): Promise { if (options == null) { options = { }; } @@ -348,7 +355,7 @@ export function start(_root: string, options: Options): Promise { const cmd = cmds[0]; - const args = [ "--headless", "--disable-gpu", "--remote-debugging-port=8023" ]; + const args = [ "--headless", "--disable-gpu", "--remote-debugging-port=8022" ]; const browser = child_process.spawn(cmd, args); let url: string = await new Promise((resolve, reject) => { @@ -377,6 +384,7 @@ export function start(_root: string, options: Options): Promise { const status = await session.done; console.log("STATUS:", status); process.exit(status); + })().catch((error) => { console.log("ERROR"); console.log(error); diff --git a/src.ts/_tests/index.ts b/src.ts/_tests/index.ts index 9a3b3ef47..1d019dec5 100644 --- a/src.ts/_tests/index.ts +++ b/src.ts/_tests/index.ts @@ -11,8 +11,8 @@ import "./test-providers-ccip.js"; //import "./test-providers-errors.js"; //import "./test-providers-extra.js"; import "./test-providers-fallback.js"; -//import "./test-providers-jsonrpc.js"; -import "./test-providers-send.js"; +import "./test-providers-jsonrpc.js"; +//import "./test-providers-send.js"; import "./test-providers-wildcard.js"; import "./test-rlp.js" import "./test-transaction.js";