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
13 changes: 8 additions & 5 deletions npm/angular/src/mount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,17 @@ export function mount<T extends object> (
const fixture = setupFixture(component, testBed, autoDetectChanges)
const componentInstance = setupComponent(config, fixture)

const mountResponse: MountResponse<T> = {
testBed,
fixture,
component: componentInstance,
}

Cypress.log({
name: 'mount',
message: component.name,
consoleProps: () => ({ result: mountResponse }),
})

return cy.wrap({
fixture,
testBed,
component: componentInstance,
}, { log: false })
return cy.wrap(mountResponse, { log: false })
}
4 changes: 2 additions & 2 deletions npm/webpack-dev-server/src/helpers/angularHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ export function getAngularBuildOptions (projectConfig: AngularJsonProjectConfig,
assets: [],
styles: [],
scripts: [],
budgets: [],
fileReplacements: [],
outputHashing: 'all',
inlineStyleLanguage: 'css',
stylePreprocessorOptions: { includePaths: [] },
resourcesOutputPath: undefined,
Expand Down Expand Up @@ -121,6 +119,8 @@ export function getAngularBuildOptions (projectConfig: AngularJsonProjectConfig,
...projectConfig.architect.build.configurations?.development || {},
tsConfig,
aot: false,
outputHashing: 'none',
budgets: undefined,
}
}

Expand Down
2 changes: 2 additions & 0 deletions npm/webpack-dev-server/test/handlers/angularHandler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ const expectLoadsAngularBuildOptions = () => {
expect(buildOptions.aot).to.be.false
expect(buildOptions.optimization).to.be.false
expect(buildOptions.tsConfig).to.equal(tsConfig)
expect(buildOptions.outputHashing).to.equal('none')
expect(buildOptions.budgets).to.be.undefined

const modifiedProjectConfig = cloneDeep(projectConfig)

Expand Down