Skip to content

Commit 1f8d43f

Browse files
clydinalan-agius4
authored andcommitted
test(@angular/build): add an E2E test for absolute include paths for unit tests
An additional E2E test has been added that tests the usage of an absolute path for the `unit-test` command line `--include` option. (cherry picked from commit 9efcb03)
1 parent 3a7b328 commit 1f8d43f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import assert from 'node:assert/strict';
2+
import { applyVitestBuilder } from '../../utils/vitest';
3+
import { ng } from '../../utils/process';
4+
import path from 'node:path';
5+
6+
export default async function (): Promise<void> {
7+
await applyVitestBuilder();
8+
9+
const { stdout } = await ng('test', '--include', path.resolve('src/app/app.spec.ts'));
10+
11+
assert.match(stdout, /1 passed/, 'Expected 1 test to pass.');
12+
}

0 commit comments

Comments
 (0)