Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modules/testing/builder/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ts_project(
# resolvable in the test project.
":node_modules/@angular/ssr",
":node_modules/vitest",
":node_modules/@vitest/coverage-v8",
] + glob(["projects/**/*"]),
deps = [
":node_modules/@angular-devkit/architect",
Expand Down
1 change: 1 addition & 0 deletions modules/testing/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"@angular-devkit/architect": "workspace:*",
"@angular/ssr": "workspace:*",
"@angular-devkit/build-angular": "workspace:*",
"@vitest/coverage-v8": "3.2.4",
"rxjs": "7.8.2",
"vitest": "3.2.4"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from '../setup';

describeBuilder(execute, UNIT_TEST_BUILDER_INFO, (harness) => {
xdescribe('Option: "codeCoverageExclude"', () => {
describe('Option: "codeCoverageExclude"', () => {
beforeEach(async () => {
setupApplicationTarget(harness);
await harness.writeFiles({
Expand All @@ -31,8 +31,8 @@ describeBuilder(execute, UNIT_TEST_BUILDER_INFO, (harness) => {

const { result } = await harness.executeOnce();
expect(result?.success).toBeTrue();
const summary = harness.readFile('coverage/coverage-summary.json');
expect(summary).toContain('"src/app/error.ts"');
const summary = harness.readFile('coverage/coverage-final.json');
expect(summary).toContain('src/app/error.ts"');
});

it('should exclude files from coverage that match the glob pattern', async () => {
Expand All @@ -44,8 +44,8 @@ describeBuilder(execute, UNIT_TEST_BUILDER_INFO, (harness) => {

const { result } = await harness.executeOnce();
expect(result?.success).toBeTrue();
const summary = harness.readFile('coverage/coverage-summary.json');
expect(summary).not.toContain('"src/app/error.ts"');
const summary = harness.readFile('coverage/coverage-final.json');
expect(summary).not.toContain('src/app/error.ts"');
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from '../setup';

describeBuilder(execute, UNIT_TEST_BUILDER_INFO, (harness) => {
xdescribe('Option: "codeCoverageReporters"', () => {
describe('Option: "codeCoverageReporters"', () => {
beforeEach(async () => {
setupApplicationTarget(harness);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from '../setup';

describeBuilder(execute, UNIT_TEST_BUILDER_INFO, (harness) => {
xdescribe('Option: "codeCoverage"', () => {
describe('Option: "codeCoverage"', () => {
beforeEach(async () => {
setupApplicationTarget(harness);
});
Expand Down
77 changes: 77 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.