Skip to content

Commit 613ba31

Browse files
alan-agius4clydin
authored andcommitted
test(@angular/cli): move completion command test in own directory
Just re-organizing a bit (cherry picked from commit 373d380)
1 parent 792930d commit 613ba31

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

tests/legacy-cli/e2e/tests/misc/completion-prompt.ts renamed to tests/legacy-cli/e2e/tests/commands/completion/completion-prompt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import { promises as fs } from 'fs';
22
import * as os from 'os';
33
import * as path from 'path';
44
import { env } from 'process';
5-
import { getGlobalVariable } from '../../utils/env';
5+
import { getGlobalVariable } from '../../../utils/env';
66
import {
77
execAndCaptureError,
88
execAndWaitForOutputToMatch,
99
execWithEnv,
1010
silentNpm,
11-
} from '../../utils/process';
11+
} from '../../../utils/process';
1212

1313
const AUTOCOMPLETION_PROMPT = /Would you like to enable autocompletion\?/;
1414
const DEFAULT_ENV = Object.freeze({

tests/legacy-cli/e2e/tests/misc/completion-script.ts renamed to tests/legacy-cli/e2e/tests/commands/completion/completion-script.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { exec, execAndWaitForOutputToMatch } from '../../utils/process';
1+
import { exec, execAndWaitForOutputToMatch } from '../../../utils/process';
22

33
export default async function () {
44
// ng build

tests/legacy-cli/e2e/tests/misc/completion.ts renamed to tests/legacy-cli/e2e/tests/commands/completion/completion.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import { execFile } from 'child_process';
21
import { promises as fs } from 'fs';
32
import * as os from 'os';
43
import * as path from 'path';
5-
import { getGlobalVariable } from '../../utils/env';
4+
import { getGlobalVariable } from '../../../utils/env';
65
import {
76
execAndCaptureError,
87
execAndWaitForOutputToMatch,
98
execWithEnv,
109
silentNpm,
11-
} from '../../utils/process';
10+
} from '../../../utils/process';
1211

1312
const testRegistry = getGlobalVariable('package-registry');
1413

0 commit comments

Comments
 (0)