import chai from 'chai' ; import chaiAsPromised from 'chai-as-promised' ; import customAssertions from './custom-assertions' ; chai . use ( customAssertions ) ; chai . use ( chaiAsPromised ) ; if ( ! ( process as any ) . __didSetCardstackWarning ) { ( process as any ) . __didSetCardstackWarning = true ; process . on ( 'warning' , ( warning ) => { console . warn ( warning . stack ) ; } ) ; } import logger from '@cardstack/logger' ; logger . configure ( { defaultLevel : 'warn' , } ) ; ( global as any ) . expect = chai . expect ;