You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
johndickerson@Johns-MacBook-Pro snap % npm run test
> snap@0.1.0 test
> jest
(node:21832) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
FAIL src/index.test.ts (19.883 s)
onRpcRequest
✕ throws an error if the requested method does not exist (2295 ms)
hello
✕ shows a confirmation dialog (4228 ms)
● onRpcRequest › hello › shows a confirmation dialog
Timed out waiting for snap interface to be shown.
14 | });
15 |
> 16 | const ui = await response.getInterface();
| ^
17 | expect(ui.type).toBe('confirmation');
18 | expect(ui).toRender(
19 | panel([
at waitFor (../../node_modules/@metamask/snaps-jest/src/internals/wait-for.ts:60:13)
at getInterface (../../node_modules/@metamask/snaps-jest/src/internals/interface.ts:26:35)
at Promise.response.getInterface (../../node_modul
It is timing out on this method:
const ui = await response.getInterface();
Any ideas why this is hanging?
Do I need to start something else for this to work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I create a snap and change directory to:
packages/site
and run
npm run test
I get:
It is timing out on this method:
const ui = await response.getInterface();
Any ideas why this is hanging?
Do I need to start something else for this to work?
Thank you for your time.
Beta Was this translation helpful? Give feedback.
All reactions