license import './index' ; import '@tensorflow/tfjs-core/dist/public/chained_ops/register_all_chained_ops' ; import '@tensorflow/tfjs-core/dist/register_all_gradients' ; import { setTestEnvs , setupTestFilters , TestFilter } from '@tensorflow/tfjs-core/dist/jasmine_util' ; const jasmineCtor = require ( 'jasmine' ) ; Error . stackTraceLimit = Infinity ; process . on ( 'unhandledRejection' , e => { throw e ; } ) ; setTestEnvs ( [ { name : 'cpu' , backendName : 'cpu' , isDataSync : true } ] ) ; const coreTests = 'tfjs-core/src/tests.js' ; const cpuTests = 'tfjs-backend-cpu/src/**/*_test.js' ; const runner = new jasmineCtor ( ) ; runner . loadConfig ( { spec_files : [ cpuTests , coreTests ] , random : false } ) ; const TEST_FILTERS = [ ] ; const customInclude = ( testName ) => { if ( testName . includes ( 'computation in worker' ) ) { return false ; } return true ; } ; setupTestFilters ( TEST_FILTERS , customInclude ) ; runner . execute ( ) ;