jshmrtn/generator-jm-vuejs

View on GitHub
generators/app/templates/bin/jest-visual

Summary

Maintainability
Test Coverage
#!/usr/bin/env node

'use strict';

const
  testServer = require('../build/test-server'),
  jestCli = require('jest-cli');

testServer.ready
  .then(() => {
    return jestCli.run();
  })
  .then(() => {
    testServer.close();
    process.exit(0);
  })
  .catch((error) => {
    console.error(error);
    testServer.close();
    process.exit(1);
  });