From 7de2ec9728edc2fecbbb0d04b9acec9544eb12e5 Mon Sep 17 00:00:00 2001 From: Robert Field Date: Sun, 24 Sep 2023 14:53:08 +0100 Subject: [PATCH] feat: examples generated for added build e2e scripts --- examples/algolia/package.json | 4 +++- examples/basic/package.json | 4 +++- examples/basic/src/components/header/Header.tsx | 2 -- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/algolia/package.json b/examples/algolia/package.json index f5e2c7a4..c5028e14 100644 --- a/examples/algolia/package.json +++ b/examples/algolia/package.json @@ -15,7 +15,9 @@ "test:coverage": "vitest run --coverage", "test:watch": "vitest", "test:ci:e2e": "NODE_ENV=test yarn build && (yarn start & (sleep 5 && npx playwright install --with-deps && yarn test:e2e && kill $(lsof -t -i tcp:3000)))", - "test:e2e": "NODE_ENV=test playwright test" + "test:e2e": "NODE_ENV=test playwright test", + "build:e2e": "NODE_ENV=test next build", + "start:e2e": "NODE_ENV=test next start" }, "dependencies": { "@algolia/react-instantsearch-widget-color-refinement-list": "^1.4.7", diff --git a/examples/basic/package.json b/examples/basic/package.json index 3528a8b4..953cdd00 100644 --- a/examples/basic/package.json +++ b/examples/basic/package.json @@ -15,7 +15,9 @@ "test:coverage": "vitest run --coverage", "test:watch": "vitest", "test:ci:e2e": "NODE_ENV=test yarn build && (yarn start & (sleep 5 && npx playwright install --with-deps && yarn test:e2e && kill $(lsof -t -i tcp:3000)))", - "test:e2e": "NODE_ENV=test playwright test" + "test:e2e": "NODE_ENV=test playwright test", + "build:e2e": "NODE_ENV=test next build", + "start:e2e": "NODE_ENV=test next start" }, "dependencies": { "@elasticpath/react-shopper-hooks": "^0.3.1", diff --git a/examples/basic/src/components/header/Header.tsx b/examples/basic/src/components/header/Header.tsx index 030a698a..77360ac4 100644 --- a/examples/basic/src/components/header/Header.tsx +++ b/examples/basic/src/components/header/Header.tsx @@ -1,5 +1,4 @@ import { NavigationNode } from "../../lib/build-site-navigation"; - import MobileNavBar from "./navigation/MobileNavBar"; import EpIcon from "../../../public/icons/ep-icon.svg"; import NavBar from "./navigation/NavBar"; @@ -30,7 +29,6 @@ const Header = ({ nav }: IHeader): JSX.Element => {
-