This repository has been archived on 2023-04-09. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-23 17:27:09 +00:00
|
|
|
// -----------------------------------------
|
|
|
|
// To be used in NodeJS testing environments
|
|
|
|
// node -r @chainsafe/bls/register
|
|
|
|
// -----------------------------------------
|
|
|
|
|
|
|
|
// blst-native initialization is syncronous
|
|
|
|
// Initialize bls here instead of in before() so it's available inside describe() blocks
|
2022-04-11 15:08:15 +00:00
|
|
|
import("./lib/index.js").then(({init}) => init("blst-native")).catch((e) => {
|
2021-08-23 17:27:09 +00:00
|
|
|
// eslint-disable-next-line no-console
|
|
|
|
console.error(e);
|
|
|
|
process.exit(1);
|
|
|
|
});
|