Skip to content

Commit

Permalink
change response strucutre
Browse files Browse the repository at this point in the history
  • Loading branch information
Andepande committed Nov 7, 2024
1 parent e946bb4 commit d771421
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/testing/e2e/mobile-e2e-mocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ root/
│ │ │ ├── gas-api-responses.json
```


This structure promotes clear organisation and makes managing tests simpler.

## Mock Server Implementation
Expand Down Expand Up @@ -90,12 +89,10 @@ export const mockEvents = {
};
```

Mock responses are saved in separate JSON files (`mockResponses.json`) for reusability and easier management.

### Response Structure
Mock responses are stored in individual JSON files for each API or service, making them easier to maintain. Each file contains keys for the API and subkeys for various scenarios.
Mock responses are stored in individual JSON files for each API or service within the `mock-responses` folder, making them easier to maintain and manage. Each API service has its own JSON response file, such as `gasApiResponse.json` for gas-related responses and `ethpriceResponse.json` for Ethereum price responses. This organisation enables clear separation of mock data and simplifies updates or additions.

**Example:** `gas-api-responses.json`
**Example:** `gasApiResponse.json`

```json
{
Expand Down

0 comments on commit d771421

Please sign in to comment.