useStorage in nuxt/test-utils

I'm trying to use useStorage() in vitest unit test. I'm using nuxt/test-utils package.
  it('should return bool', async () => {
    const code = 'XF4'
    const result = await askTransistor(code);

    const { getItem } = useStorage('trn_data')
    const x = getItem(code)

    expect(x).toEqual(true)
  })

Normally in my code useStorage() is auto imported but in the test it's not the case. How can I make it work?
This snipped fails at: ReferenceError: useStorage is not defined
Was this page helpful?