import { ng } from '../../utils/process';
import { writeFile } from '../../utils/fs';
import { expectToFail } from '../../utils/utils';

export default function () {
  // TODO(architect): Delete this test. It is now in devkit/build-angular.

  // Fails on single run with broken compilation.
  return writeFile('src/app.spec.ts', '<p> definitely not typescript </p>').then(() =>
    expectToFail(() => ng('test', '--watch=false')),
  );
}
