Charles Lyding af0ef747b2 test: remove common-tags dependency from E2E tests
The `common-tags` development dependency was only used in several E2E tests.
Removing the usage of the dependency also allows it to be removed as a development dependency from the root `package.json`.
2022-02-22 09:24:38 -05:00

20 lines
605 B
TypeScript

import { silentNg } from '../../../utils/process';
export default function () {
return Promise.resolve()
.then(() => silentNg('--help'))
.then(({ stdout }) => {
if (stdout.match(/(easter-egg)|(ng make-this-awesome)|(ng init)/)) {
throw new Error(
'Expected to not match "(easter-egg)|(ng make-this-awesome)|(ng init)" in help output.',
);
}
})
.then(() => silentNg('--help', 'new'))
.then(({ stdout }) => {
if (stdout.match(/--link-cli/)) {
throw new Error('Expected to not match "--link-cli" in help output.');
}
});
}