Error with Jest and framework7-svelte

I followed other examples/issues here trying to get Jest to work with framework7 but Im still down to this one error while trying to test one of my components.

import AccordionContent from ‘./components/accordion-content.svelte’;

SyntaxError: Cannot use import statement outside a module

  11 | export let buttonText2="Cancel";
  12 |
> 13 | import {f7} from 'framework7-svelte'
     |           ^
  14 |
  15 | $: if (open){
  16 |     if (dialog) dialog.destroy();

  at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1295:14)
  at Object.<anonymous> (src/components/dyn-dialog.svelte:13:11)

It seems to have an issue with importing the f7 module… I need it to open a dialog

import {f7} from ‘framework7-svelte’

Any suggestions and/or workaround?

Im guessing this cannot be solved then? How do we do unit testing with Framework7 if jest doesnt work? What is the recommended approach?