Skip to content

Commit 64d5558

Browse files
committed
update:Add->CypressConfig
1 parent 840862b commit 64d5558

File tree

2 files changed

+42
-33
lines changed

2 files changed

+42
-33
lines changed

.github/workflows/cypress.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
name: Cypress Tests
2-
on: [push]
3-
jobs:
4-
cypress-run:
5-
runs-on: ubuntu-latest
6-
# Runs tests in parallel with matrix strategy https://docs.cypress.io/guides/guides/parallelization
7-
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
8-
# Also see warning here https://github.com/cypress-io/github-action#parallel
9-
strategy:
10-
fail-fast: false # https://github.com/cypress-io/github-action/issues/48
11-
matrix:
12-
containers: [1, 2] # Uses 2 parallel instances
13-
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v4
16-
- name: Cypress run
17-
# Uses the official Cypress GitHub action https://github.com/cypress-io/github-action
18-
uses: cypress-io/github-action@v6
19-
with:
20-
# Starts web server for E2E tests - replace with your own server invocation
21-
# https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server
22-
start: npm start
23-
wait-on: 'http://localhost:3000' # Waits for above
24-
# Records to Cypress Cloud
25-
# https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record
26-
record: true
27-
parallel: true # Runs test in parallel using settings above
28-
env:
29-
# For recording and parallelization to work you must set your CYPRESS_RECORD_KEY
30-
# in GitHub repo → Settings → Secrets → Actions
31-
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
32-
# Creating a token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1+
# name: Cypress Tests
2+
# on: [push]
3+
# jobs:
4+
# cypress-run:
5+
# runs-on: ubuntu-latest
6+
# # Runs tests in parallel with matrix strategy https://docs.cypress.io/guides/guides/parallelization
7+
# # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
8+
# # Also see warning here https://github.com/cypress-io/github-action#parallel
9+
# strategy:
10+
# fail-fast: false # https://github.com/cypress-io/github-action/issues/48
11+
# matrix:
12+
# containers: [1, 2] # Uses 2 parallel instances
13+
# steps:
14+
# - name: Checkout
15+
# uses: actions/checkout@v4
16+
# - name: Cypress run
17+
# # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action
18+
# uses: cypress-io/github-action@v6
19+
# with:
20+
# # Starts web server for E2E tests - replace with your own server invocation
21+
# # https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server
22+
# start: npm start
23+
# wait-on: 'http://localhost:3000' # Waits for above
24+
# # Records to Cypress Cloud
25+
# # https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record
26+
# record: true
27+
# parallel: true # Runs test in parallel using settings above
28+
# env:
29+
# # For recording and parallelization to work you must set your CYPRESS_RECORD_KEY
30+
# # in GitHub repo → Settings → Secrets → Actions
31+
# CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
32+
# # Creating a token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
33+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

app/profile/loadingLoading.cy.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react'
2+
import Loading from './loading'
3+
4+
describe('<Loading />', () => {
5+
it('renders', () => {
6+
// see: https://on.cypress.io/mounting-react
7+
cy.mount(<Loading />)
8+
})
9+
})

0 commit comments

Comments
 (0)