'use strict'
-import { assert, stats, suite, test } from './GLOBALS.mjs'
+import { assert, isNode, stats, suite, test } from './GLOBALS.mjs'
import { NANO_TEST_VECTORS } from './VECTORS.js'
-import { Bip44Wallet, Blake2bWallet } from '../dist/main.min.js'
+const { Bip44Wallet, Blake2bWallet } = await import(isNode ? '../dist/nodejs.min.js' : '../dist/browser.min.js')
await Promise.all([
suite('Account performance', { skip: true }, async () => {
'use strict'
-import { stats, suite, test } from './GLOBALS.mjs'
+import { isNode, stats, suite, test } from './GLOBALS.mjs'
import { NANO_TEST_VECTORS } from './VECTORS.js'
-import { SendBlock } from '../dist/main.min.js'
+const { SendBlock } = await import(isNode ? '../dist/nodejs.min.js' : '../dist/browser.min.js')
await Promise.all([
suite('Block performance', { skip: true }, async () => {
'use strict'
-import { stats, suite, test } from './GLOBALS.mjs'
+import { isNode, stats, suite, test } from './GLOBALS.mjs'
import { NANO_TEST_VECTORS } from './VECTORS.js'
-import { Bip44Wallet, Blake2bWallet } from '../dist/main.min.js'
+const { Bip44Wallet, Blake2bWallet } = await import(isNode ? '../dist/nodejs.min.js' : '../dist/browser.min.js')
await Promise.all([
suite(`Wallet performance`, { skip: true }, async () => {