mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix: broken commands mobile doc (#51972)
This commit is contained in:
@@ -69,11 +69,14 @@ jobs:
|
||||
run: |
|
||||
sed -i 's#cypress/e2e/default/#cypress/e2e/#g' cypress.config.js
|
||||
|
||||
- name: Install serve
|
||||
run: npm install -g serve
|
||||
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v6
|
||||
with:
|
||||
record: ${{ env.CYPRESS_RECORD_KEY != 0 }}
|
||||
start: npx serve
|
||||
start: npx serve --no-request-logging
|
||||
wait-on: http://localhost:3000
|
||||
wait-on-timeout: 1200
|
||||
config: retries=1,screenshotOnRunFailure=false,video=false,baseUrl=http://localhost:3000/mobile/mobile-app/generated-tests/
|
||||
|
||||
@@ -417,7 +417,7 @@ Follow these steps:
|
||||
|
||||
#### **Windows**
|
||||
```console
|
||||
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
copy .\shared\config\curriculum.json ..\mobile\mobile-app\curriculum.json
|
||||
```
|
||||
|
||||
7. Change directory to the mobile app:
|
||||
@@ -435,7 +435,7 @@ Follow these steps:
|
||||
9. Update the test file to use the challenge data JSON file:
|
||||
|
||||
```console
|
||||
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
sed -i '' 's/..\/..\/shared\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
|
||||
```
|
||||
|
||||
10. Generate the challenge files:
|
||||
|
||||
Reference in New Issue
Block a user