-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28974cb
commit 7595ccd
Showing
7 changed files
with
23 additions
and
684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,15 +36,15 @@ jobs: | |
run: | | ||
rm -rf node_modules | ||
rm package-lock.json | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Cypress e2e tests 🧪 | ||
uses: cypress-io/[email protected] | ||
with: | ||
start: npm run dev | ||
wait-on: "http://localhost:3000" | ||
browser: electron | ||
config-file: cypress.config.ts | ||
# - name: Install Dependencies | ||
# run: npm install | ||
# - name: Cypress e2e tests 🧪 | ||
# uses: cypress-io/[email protected] | ||
# with: | ||
# start: npm run dev | ||
# wait-on: "http://localhost:3000" | ||
# browser: electron | ||
# config-file: cypress.config.ts | ||
|
||
Deploy-Preview: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,17 +36,15 @@ jobs: | |
run: | | ||
rm -rf node_modules | ||
rm package-lock.json | ||
- name: Install Dependencies | ||
run: npm install | ||
- name: Start app | ||
run: npm run dev | ||
- name: Cypress e2e tests 🧪 | ||
uses: cypress-io/[email protected] | ||
with: | ||
start: npm run dev | ||
wait-on: "http://localhost:3000" | ||
browser: electron | ||
config-file: cypress.config.ts | ||
# - name: Install Dependencies | ||
# run: npm install | ||
# - name: Cypress e2e tests 🧪 | ||
# uses: cypress-io/[email protected] | ||
# with: | ||
# start: npm run dev | ||
# wait-on: "http://localhost:3000" | ||
# browser: electron | ||
# config-file: cypress.config.ts | ||
|
||
Deploy-Production: | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,11 @@ | ||
import { defineConfig } from "cypress" | ||
import jsonServer from "json-server" | ||
|
||
export default defineConfig({ | ||
e2e: { | ||
baseUrl: "http://localhost:3000", | ||
chromeWebSecurity: false, | ||
setupNodeEvents(on, config) { | ||
on("before:run", () => { | ||
const server = jsonServer.create() | ||
const router = jsonServer.router( | ||
"cypress/fixtures/empty-user-labs.json", | ||
) | ||
const middlewares = jsonServer.defaults() | ||
|
||
server.use(middlewares) | ||
server.use(router) | ||
|
||
server.listen(3000, () => { | ||
console.log("JSON Server is running") | ||
}) | ||
}) | ||
// implement node event listeners here | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.