Skip to content

Commit

Permalink
removing unnecesary dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCasCeb committed Jan 5, 2024
1 parent 76abc48 commit d6cf68f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 116 deletions.
92 changes: 0 additions & 92 deletions packages/web-new/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/web-new/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"nodemon": "^3.0.1",
"sass": "^1.64.0",
"sass-loader": "^13.3.2",
"serve-handler": "^6.1.5",
"style-loader": "^3.3.3",
"webpack": "^5.88.2",
"webpack-bundle-analyzer": "^4.9.0",
Expand Down
26 changes: 3 additions & 23 deletions packages/web-new/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,9 @@
********************************************************************************/
// @ts-check
const { defineConfig, devices } = require('@playwright/test');
const handler = require("serve-handler");
const http = require("http");

const isCI = process.env.CI;

if (isCI) {
const port = 5101;
const host = "http://localhost";
const fullHost = host + ":" + port;

const server = http.createServer((request, response) => {
// You pass two more arguments for config and middleware
// More details here: https://github.com/vercel/serve-handler#options
return handler(request, response);
});

/* ################### */
/* MAIN */
server.listen(port, () => {
console.log("Running siteTest at " + fullHost);
});
}

module.exports = defineConfig({
testDir: './tests',
// Folder for test artifacts such as screenshots, videos, traces, etc.
Expand All @@ -54,7 +34,7 @@ module.exports = defineConfig({
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: isCI ? 'http://localhost:5101' : 'http://127.0.0.1:5100',
baseURL: isCI ? 'https://deploy-preview-515--thingweb-playground.netlify.app' : 'http://127.0.0.1:5100',

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
Expand Down Expand Up @@ -87,7 +67,7 @@ module.exports = defineConfig({
/* Run your local dev server before starting the tests */
webServer: {
command: isCI ? '' : 'npm run serve',
url: isCI ? 'http://localhost:5101' : 'http://127.0.0.1:5100',
reuseExistingServer: true,
url: isCI ? 'https://deploy-preview-515--thingweb-playground.netlify.app' : 'http://127.0.0.1:5100',
reuseExistingServer: !isCI,
}
});

0 comments on commit d6cf68f

Please sign in to comment.