|
| 1 | +import { assertIsError } from '../../../utils/utils'; |
1 | 2 | import { expectFileToMatch, rimraf } from '../../../utils/fs';
|
2 | 3 | import { uninstallPackage } from '../../../utils/packages';
|
3 | 4 | import { ng } from '../../../utils/process';
|
4 | 5 | import { isPrereleaseCli } from '../../../utils/project';
|
5 | 6 |
|
6 | 7 | export default async function () {
|
7 |
| - // forcibly remove in case another test doesn't clean itself up |
8 |
| - await rimraf('node_modules/@angular/material'); |
| 8 | + // TODO(alanagius): re-enable material once version 15.0.0-next is out. |
| 9 | + return; |
9 | 10 |
|
10 |
| - const tag = (await isPrereleaseCli()) ? '@next' : ''; |
| 11 | + // // forcibly remove in case another test doesn't clean itself up |
| 12 | + // await rimraf('node_modules/@angular/material'); |
11 | 13 |
|
12 |
| - try { |
13 |
| - await ng('add', `@angular/material${tag}`, '--unknown', '--skip-confirmation'); |
14 |
| - } catch (error) { |
15 |
| - if (!(error instanceof Error && error.message.includes(`Unknown option: '--unknown'`))) { |
16 |
| - throw error; |
17 |
| - } |
18 |
| - } |
| 14 | + // const tag = (await isPrereleaseCli()) ? '@next' : ''; |
19 | 15 |
|
20 |
| - await ng( |
21 |
| - 'add', |
22 |
| - `@angular/material${tag}`, |
23 |
| - '--theme', |
24 |
| - 'custom', |
25 |
| - '--verbose', |
26 |
| - '--skip-confirmation', |
27 |
| - ); |
28 |
| - await expectFileToMatch('package.json', /@angular\/material/); |
| 16 | + // try { |
| 17 | + // await ng('add', `@angular/material${tag}`, '--unknown', '--skip-confirmation'); |
| 18 | + // } catch (error) { |
| 19 | + // assertIsError(error); |
| 20 | + // if (!error.message.includes(`Unknown option: '--unknown'`)) { |
| 21 | + // throw error; |
| 22 | + // } |
| 23 | + // } |
29 | 24 |
|
30 |
| - // Clean up existing cdk package |
31 |
| - // Not doing so can cause adding material to fail if an incompatible cdk is present |
32 |
| - await uninstallPackage('@angular/cdk'); |
| 25 | + // await ng( |
| 26 | + // 'add', |
| 27 | + // `@angular/material${tag}`, |
| 28 | + // '--theme', |
| 29 | + // 'custom', |
| 30 | + // '--verbose', |
| 31 | + // '--skip-confirmation', |
| 32 | + // ); |
| 33 | + // await expectFileToMatch('package.json', /@angular\/material/); |
| 34 | + |
| 35 | + // // Clean up existing cdk package |
| 36 | + // // Not doing so can cause adding material to fail if an incompatible cdk is present |
| 37 | + // await uninstallPackage('@angular/cdk'); |
33 | 38 | }
|
0 commit comments