Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"prepare": "husky install",
"preinstall": "node scripts/check-package-manager.js",
"start": "NODE_ENV=production node --max-old-space-size=3500 build/server.js",
"fallbackStart": "yarn start",
"stop": "./scripts/killApp.sh",
"storybook": "storybook dev -p 9001 -c .storybook",
"test": "yarn build && yarn test:local",
Expand Down
7 changes: 3 additions & 4 deletions src/integration/utils/runTests/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,19 @@ const startApp = () => {
const pathname = argv.nextJS ? '' : '/status';

const statusCommand = `sleep 20 && curl http://localhost:${portNumber}${pathname}`;

const initialCommand = `yarn ${isDev ? 'dev' : 'start'}`;
const fallbackCommand = `yarn ${isDev ? 'dev' : 'fallbackStart'}`;
let errorMsg = '';

return new Promise((resolve, reject) => {
exec(initialCommand, error => {
if (error) {
exec(fallbackCommand);
errorMsg = error;
}
});

exec(statusCommand, error => {
if (error) {
reject(new Error('Both the initial and fallback start up failed'));
reject(new Error(errorMsg));
}
resolve();
});
Expand Down
1 change: 0 additions & 1 deletion ws-nextjs-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"dev": "yarn setupDevEnv && next dev -p 7081 --webpack",
"dev-https": "yarn setupDevEnv && next dev -p 7081 --experimental-https --webpack",
"start": "NODE_ENV=production HOSTNAME=127.0.0.1 PORT=7081 node build/standalone/ws-nextjs-app/server.js",
"fallbackStart": "next start -p 7081",
"stop": "lsof -t -i:7081 | xargs kill",
"test": "NODE_OPTIONS=--no-experimental-strip-types jest --ci --colors --selectProjects='Unit Tests'",
"test:integration": "NODE_OPTIONS=--no-experimental-strip-types jest --ci --colors --selectProjects='Integration Tests - Canonical' --selectProjects='Integration Tests - AMP' --selectProjects='Integration Tests - Lite'",
Expand Down
Loading