Skip to content

Commit 8ebd2f1

Browse files
clydinalan-agius4
authored andcommitted
test(@angular-devkit/build-webpack): remove unused createConsoleLogger usage
Removes the last usage of `createConsoleLogger` in the repository from the webpack builder tests. This makes the test consistent with others in the file and allows for potential removal of the function. Also removes an unused `BuildResult` import in the same file.
1 parent 71f0b0a commit 8ebd2f1

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

  • packages/angular_devkit/build_webpack/src/builders/webpack

packages/angular_devkit/build_webpack/src/builders/webpack/index_spec.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ import { Architect } from '@angular-devkit/architect';
1010
import { WorkspaceNodeModulesArchitectHost } from '@angular-devkit/architect/node';
1111
import { TestingArchitectHost } from '@angular-devkit/architect/testing';
1212
import { join, normalize, schema, workspaces } from '@angular-devkit/core';
13-
import { NodeJsSyncHost, createConsoleLogger } from '@angular-devkit/core/node';
13+
import { NodeJsSyncHost } from '@angular-devkit/core/node';
1414
import * as path from 'node:path';
15-
import { BuildResult } from './index';
1615

1716
describe('Webpack Builder basic test', () => {
1817
let testArchitectHost: TestingArchitectHost;
@@ -99,11 +98,7 @@ describe('Webpack Builder basic test', () => {
9998
});
10099

101100
it('works', async () => {
102-
const run = await architect.scheduleTarget(
103-
{ project: 'app', target: 'build-webpack' },
104-
{},
105-
{ logger: createConsoleLogger() },
106-
);
101+
const run = await architect.scheduleTarget({ project: 'app', target: 'build-webpack' });
107102
const output = await run.result;
108103

109104
expect(output.success).toBe(true);

0 commit comments

Comments
 (0)