Skip to content

Commit 408530d

Browse files
authored
fix: disable middleware logs in CI (#3177)
1 parent 5c7c5fc commit 408530d

File tree

21 files changed

+25
-1
lines changed

21 files changed

+25
-1
lines changed

test/fixtures/client-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/contentbase-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
publicPath: '/',

test/fixtures/historyapifallback-2-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/historyapifallback-3-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/historyapifallback-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/mime-types-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/module-federation-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
target: 'node',
6+
stats: 'none',
67
context: __dirname,
78
entry: ['./entry1.js', './entry2.js'],
89
output: {

test/fixtures/module-federation-config/webpack.multi.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = [
55
mode: 'development',
66
target: 'node',
77
context: __dirname,
8+
stats: 'none',
89
entry: ['./entry1.js', './entry2.js'],
910
output: {
1011
path: '/',

test/fixtures/module-federation-config/webpack.object-entry.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
target: 'node',
6+
stats: 'none',
67
context: __dirname,
78
entry: {
89
foo: './entry1.js',

test/fixtures/module-federation-config/webpack.plugin.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const ModuleFederationPlugin = require('webpack').container
66
module.exports = {
77
mode: 'development',
88
target: 'node',
9+
stats: 'none',
910
context: __dirname,
1011
entry: ['./entry1.js'],
1112
plugins: [

test/fixtures/multi-compiler-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = [
44
{
55
mode: 'development',
66
context: __dirname,
7+
stats: 'none',
78
entry: './foo.js',
89
output: {
910
path: '/',

test/fixtures/multi-public-path-config/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = [
66
{
77
mode: 'development',
88
context: __dirname,
9+
stats: 'none',
910
entry: './foo.js',
1011
output: {
1112
path: __dirname,
@@ -30,14 +31,14 @@ module.exports = [
3031
{
3132
mode: 'development',
3233
context: __dirname,
34+
stats: 'none',
3335
entry: './bar.js',
3436
output: {
3537
path: path.join(__dirname, 'named'),
3638
filename: 'bar.js',
3739
publicPath: '/bundle2/',
3840
},
3941
name: 'named',
40-
stats: 'none',
4142
infrastructureLogging: {
4243
level: 'warn',
4344
},

test/fixtures/provide-plugin-sockjs-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/provide-plugin-ws-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/proxy-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/reload-config-2/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/reload-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = {
44
mode: 'development',
55
context: __dirname,
66
entry: './foo.js',
7+
stats: 'none',
78
output: {
89
path: '/',
910
},

test/fixtures/simple-config-other/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/simple-config/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
module.exports = {
44
mode: 'development',
55
context: __dirname,
6+
stats: 'none',
67
entry: './foo.js',
78
output: {
89
path: '/',

test/fixtures/universal-compiler-config/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = [
44
{
55
mode: 'development',
66
context: __dirname,
7+
stats: 'none',
78
entry: './client.js',
89
output: {
910
path: '/',
@@ -18,6 +19,7 @@ module.exports = [
1819
mode: 'development',
1920
context: __dirname,
2021
target: 'node',
22+
stats: 'none',
2123
entry: './server.js',
2224
output: {
2325
path: '/',

test/server/stats-option.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const config = require('../fixtures/simple-config/webpack.config');
66
const port = require('../ports-map')['stats-option'];
77

88
describe('stats option', () => {
9+
beforeAll(() => {
10+
jest.spyOn(console, 'log').mockImplementation(() => {});
11+
});
912
it(`should works with difference stats values (contains 'hash', 'assets', 'warnings' and 'errors')`, () => {
1013
const allStats = [
1114
{},

0 commit comments

Comments
 (0)