tests/performance/run.js
/**
 * Link the current RxPlayer to the performance tests, so its performance can be
 * tested.
 * @returns {Promise}
 */
Link the current RxPlayer to the performance tests, so its performance can be
tested.
@returns {Promise}
Link the current RxPlayer to the performance tests so its performance can be tested . @returns { Promise }
async function linkCurrentRxPlayer() {
  await removeFile(path.join(__dirname, "node_modules"));
  await fs.mkdir(path.join(__dirname, "node_modules"));
  await spawnProc("npm run build:rxp:all",
                  [],
                  (code) => new Error(`npm install exited with code ${code}`)).promise;
  await fs.symlink(
    path.join(__dirname, "..", ".."),
    path.join(__dirname, "node_modules", "rx-player")
  );
}
async function linkCurrentRxPlayer ( ) { await removeFile ( path . join ( __dirname , "node_modules" ) ) ; await fs . mkdir ( path . join ( __dirname , "node_modules" ) ) ; await spawnProc ( "npm run build:rxp:all" , [ ] , ( code ) => new Error ( ` ${ code } ` ) ) . promise ; await fs . symlink ( path . join ( __dirname , ".." , ".." ) , path . join ( __dirname , "node_modules" , "rx-player" ) ) ; }
Link the current RxPlayer to the performance tests, so its performance can be
 tested.
Link the current RxPlayer to the performance tests so its performance can be tested .