import React from "react" ; import App from "coral-admin/App" ; import { GQLCOMMENT_SORT , GQLResolver } from "coral-framework/schema" ; import { createTestRenderer , CreateTestRendererParams , } from "coral-framework/testHelpers" ; export default function create ( params ) { return createTestRenderer < GQLResolver > ( "admin" , < App />, { ... params , initLocalState : ( localRecord , source , environment ) => { localRecord . setValue ( GQLCOMMENT_SORT . CREATED_AT_DESC , "moderationQueueSort" ) ; localRecord . setValue ( false , "forceAdminLocalAuth" ) ; if ( params . initLocalState ) { params . initLocalState ( localRecord , source , environment ) ; } } , } ) ; }