mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-23 23:49:05 -06:00
fix: extranous angular warnings (#32251)
This commit is contained in:
@@ -38,6 +38,7 @@ _Released 08/12/2025 (PENDING)_
|
||||
- Upgraded `tmp` from `~0.2.3` to `~0.2.4`. This removes the [CVE-2025-54798](https://github.com/advisories/GHSA-52f5-9888-hmc6) vulnerability being reported in security scans. Addresses [#32176](https://github.com/cypress-io/cypress/issues/32176).
|
||||
- Fixed an issue where `.fixture()` calls with a specified encoding would sometimes still attempt to parse the file based on its extension. Files with an explicit encoding are now always treated as raw content. Fixes [#32139](https://github.com/cypress-io/cypress/issues/32139).
|
||||
- Fixed an issue where `.fixture()` calls with different encoding options would return inconsistent content based on execution order. Fixes [#32138](https://github.com/cypress-io/cypress/issues/32138).
|
||||
- Fixed an issue where Angular Component Testing was printing extraneous warnings to the console by default. By default, errors only will now print to the console. This can still be overridden by passing in a custom webpack config or setting the `verbose` option inside your `angular.json`. Addresses [#26456](https://github.com/cypress-io/cypress/issues/26456).
|
||||
|
||||
**Misc:**
|
||||
|
||||
|
||||
@@ -298,6 +298,14 @@ async function getAngularCliWebpackConfig (devServerConfig: AngularWebpackDevSer
|
||||
},
|
||||
)
|
||||
|
||||
// @see https://github.com/cypress-io/cypress/issues/26456
|
||||
// if verbose is not set, we set the stats to errors-only
|
||||
// users can either override this stat by passing in a custom webpack config
|
||||
// or by setting the verbose option to true
|
||||
if (!buildOptions.verbose) {
|
||||
config.stats = 'errors-only'
|
||||
}
|
||||
|
||||
delete config.entry.main
|
||||
|
||||
return config
|
||||
|
||||
@@ -38,6 +38,7 @@ describe('angularHandler', function () {
|
||||
expect(webpackConfig).to.exist
|
||||
expect((webpackConfig?.entry as any).main).to.be.undefined
|
||||
expect(sourceWebpackModulesResult.framework?.importPath).to.include(path.join('@angular-devkit', 'build-angular'))
|
||||
expect(webpackConfig.stats).to.equal('errors-only')
|
||||
const projectConfig = await getProjectConfig(projectRoot)
|
||||
|
||||
expect(projectConfig).to.deep.eq({
|
||||
|
||||
Reference in New Issue
Block a user