import { writable } from 'svelte/store' ; beforeEach ( ( ) => { id = 0 ; } ) ; let id = 0 ; function generateId ( ) { return ++ id ; } export function useId ( ) { return writable ( generateId ( ) ) ; }