nodeSetupCheck function

Future nodeSetupCheck(
  1. String dir
)

Install node modules for test.

Implementation

Future nodeSetupCheck(String dir) async {
  if (isNpmSupported && (File(join(dir, 'package.json')).existsSync())) {
    if (!(Directory(join(dir, 'node_modules')).existsSync())) {
      await Shell(workingDirectory: dir).run('npm install');
    }
  }
}