Skip to content

Commit 71a5fd3

Browse files
committed
Replace live-server with browsersync
1 parent c2c0d76 commit 71a5fd3

18 files changed

+232
-4013
lines changed

index.html

Lines changed: 0 additions & 190 deletions
This file was deleted.

jest.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import { TEST_HOST } from './test/config/server.js';
1+
import serverConfig from './server.config.js';
22

3+
const { hostname, port } = serverConfig.test;
4+
const TEST_HOST = `http://${hostname}:${port}`;
35
const sharedConfig = {
46
errorOnDeprecated: true,
57
globalSetup: './test/config/jest.setup.js',
@@ -11,6 +13,8 @@ const sharedConfig = {
1113
testURL: `${TEST_HOST}/_blank.html`,
1214
};
1315

16+
process.env.TEST_HOST = TEST_HOST;
17+
1418
export default {
1519
transform: {},
1620
projects: [

0 commit comments

Comments
 (0)