wormhole/sdk/js/ci-config.js

29 lines
672 B
JavaScript

process.env.CI = true;
const info = console.info;
console.info = function (x) {
if (x !== "secp256k1 unavailable, reverting to browser version") {
info(x);
}
};
const warn = console.warn;
console.warn = function (x) {
if (
x !==
"bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)" &&
!(
typeof x === "object" &&
x
.toString()
.includes(
"RPC Validation Error: The response returned from RPC server does not match the TypeScript definition. This is likely because the SDK version is not compatible with the RPC server."
)
)
) {
warn(x);
}
};
export default {};