import { TestSuite , TestParams } from '../core' ; import { spawn , assertion } from '../utils' ; const testSuite = async ( { scenario } ) : Promise < void > => { const plugin = scenario . plugins [ 0 ] ; assertion . not . isNull ( plugin ) ; await spawn ( 'npm' , [ 'i' ] , { cwd : plugin . dir } ) ; assertion . fileExists ( [ plugin . dir , 'node_modules' ] ) ; assertion . fileExists ( [ plugin . dir , 'node_modules' , 'flex-plugin-scripts' ] ) ; assertion . jsonFileContains ( [ plugin . dir , 'node_modules' , 'flex-plugin-scripts' , 'package.json' ] , 'version' , scenario . packageVersion ) ; } ; testSuite . description = 'Running {{npm i}}' ; export default testSuite ;