import * as vetkd from 'ic-vetkd-utils';
const seed = window.crypto.getRandomValues(new Uint8Array(32));
const tsk = new vetkd.TransportSecretKey(seed);
However, for e2e integration tests we are using Jest and we cannot import the very same module with the same code as above, it simply results in Cannot find module 'ic-vetkd-utils' from 'tests/my.test.js'
I think you need the moduleNameMapper config option from Jest: Configuring Jest · Jest
There you can map ic-vetkd-utils to <rootDir>/ic-vetkd-utils-0.1.0.tgz.