Skip to content

Commit efe6105

Browse files
committed
chore: fix ci
1 parent cb0a3fa commit efe6105

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

lib/Server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const compress = require('compression');
1616
const serveIndex = require('serve-index');
1717
const webpack = require('webpack');
1818
const webpackDevMiddleware = require('webpack-dev-middleware');
19-
const getFilenameFromUrl = require('webpack-dev-middleware/dist/utils/getFilenameFromUrl')
20-
.default;
19+
const getFilenameFromUrl =
20+
require('webpack-dev-middleware/dist/utils/getFilenameFromUrl').default;
2121
const { validate } = require('schema-utils');
2222
const DevServerPlugin = require('./utils/DevServerPlugin');
2323
const normalizeOptions = require('./utils/normalizeOptions');

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/client/utils/createSocketURL.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ describe("'createSocketURL' function ", () => {
117117
];
118118

119119
samples.forEach(([__resourceQuery, location, expected]) => {
120-
jest.doMock('../../../client-src/utils/getCurrentScriptSource', () => () =>
121-
new URL('./entry.js', location).toString()
120+
jest.doMock(
121+
'../../../client-src/utils/getCurrentScriptSource',
122+
() => () => new URL('./entry.js', location).toString()
122123
);
123124

124125
const createSocketURL = require('../../../client-src/utils/createSocketURL');

test/e2e/Client.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,8 @@ describe('reload', () => {
106106
page
107107
.evaluate(() => {
108108
const body = document.body;
109-
const bgColor = getComputedStyle(body)[
110-
'background-color'
111-
];
109+
const bgColor =
110+
getComputedStyle(body)['background-color'];
112111

113112
return bgColor;
114113
})

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

3-
const ModuleFederationPlugin = require('webpack').container
4-
.ModuleFederationPlugin;
3+
const ModuleFederationPlugin =
4+
require('webpack').container.ModuleFederationPlugin;
55

66
module.exports = {
77
mode: 'development',

test/server/transportMode-option.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ describe('transportMode', () => {
337337
mockWarn.mockRestore();
338338

339339
let foundWarning = false;
340-
const regExp = /transportMode\.server implementation must pass headers to the callback of onConnection\(f\)/;
340+
const regExp =
341+
/transportMode\.server implementation must pass headers to the callback of onConnection\(f\)/;
341342
calls.every((call) => {
342343
if (regExp.test(call)) {
343344
foundWarning = true;

0 commit comments

Comments
 (0)