import { test } from 'uvu' ; import * as assert from 'uvu/assert' ; import { mocksSetup , mocksTeardown , setup , teardown , } from './utils' ; test . before . each ( setup ) ; test . before . each ( mocksSetup ) ; test . after . each ( mocksTeardown ) ; test . after . each ( teardown ) ; function sleep ( ms ) { return new Promise ( ( resolve ) => { setTimeout ( resolve , ms ) ; } ) ; } test ( 'renders entire settings app' , async ( ) => { require ( '../dist/settings.js' ) ; assert . is ( document . body . innerHTML . length > 600 , true ) ; await sleep ( 0 ) ; } ) ; test . run ( ) ;