diff --git a/test/bip39.test.ts b/test/bip39.test.ts index a78a183..f92d997 100644 --- a/test/bip39.test.ts +++ b/test/bip39.test.ts @@ -5,13 +5,13 @@ import { mnemonicToSeed, mnemonicToSeedSync, validateMnemonic, -} from '..'; -import { wordlist as englishWordlist } from '../wordlists/english'; -import { wordlist as japaneseWordlist } from '../wordlists/japanese'; -import { wordlist as spanishWordlist } from '../wordlists/spanish'; -import { wordlist as portugueseWordlist } from '../wordlists/portuguese'; +} from '../esm/index.js'; +import { wordlist as englishWordlist } from '../esm/wordlists/english.js'; +import { wordlist as japaneseWordlist } from '../esm/wordlists/japanese.js'; +import { wordlist as spanishWordlist } from '../esm/wordlists/spanish.js'; +import { wordlist as portugueseWordlist } from '../esm/wordlists/portuguese.js'; import { bytesToHex as toHex, hexToBytes } from '@noble/hashes/utils'; -import { deepStrictEqual, throws } from './assert'; +import { deepStrictEqual, throws } from './assert.js'; import { should, describe } from 'micro-should'; export function equalsBytes(a: Uint8Array, b: Uint8Array): boolean { diff --git a/test/package.json b/test/package.json new file mode 100644 index 0000000..76d75c2 --- /dev/null +++ b/test/package.json @@ -0,0 +1,6 @@ +{ + "name": "benchmark", + "private": true, + "type": "module", + "version": "0.1.0" +} diff --git a/test/tsconfig.json b/test/tsconfig.json index f5e1852..9d54990 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "target": "es2020", - "module": "commonjs", + "module": "NodeNext", + "moduleResolution": "NodeNext", "strict": true, "esModuleInterop": true, "downlevelIteration": true,