Skip to content

Commit

Permalink
test: update folder structure, calls and folder names
Browse files Browse the repository at this point in the history
  • Loading branch information
pcheremu committed Oct 4, 2023
1 parent 1da9fcb commit 1e23ccd
Show file tree
Hide file tree
Showing 78 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This repository is a monorepo consisting of 3 packages:
- [API](./packages/api) - a service providing Web API for retrieving structured [zkSync Era](https://zksync.io) blockchain data collected by [Worker](./packages/worker). It connects to the Worker's database to be able to query the collected data.
- [App](./packages/app) - a front-end app providing an easy-to-use interface for users to view and inspect transactions, blocks, contracts and more. It makes requests to the [API](./packages/api) to get the data and presents it in a way that's easy to read and understand.

Also the repository contains [integration-test](./integration-tests) folder with a set of sdk-ui/sdk-api tests. Follow this [Readme](./integration-tests/README.md) for more details.
Also the repository contains [integration-test](./integration-tests) folder with a set of ui/api tests. Follow this [Readme](./integration-tests/README.md) for more details.

## 🏛 Architecture
The following diagram illustrates how are the block explorer components connected:
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@
"repository": "https://github.com/matter-labs/block-explorer",
"private": true,
"workspaces": [
"packages/*",
"integration-tests"
"packages/*"
],
"scripts": {
"prepare": "husky install",
"lint": "lerna run lint",
"test": "lerna run test",
"test:ci": "lerna run test:ci",
"test:e2e": "lerna run test:e2e",
"test:sdk-ui": "lerna run test:sdk-ui",
"test:sdk-api": "lerna run test:sdk-api",
"test:ui": "lerna run test:ui",
"test:api": "lerna run test:api",
"dev": "lerna run dev",
"build": "lerna run build",
"start": "lerna run start",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ Before the test run, there needs to spin a local environment up:
docker-compose -f docker-compose.yaml up
```

## How to run sdk-api tests
## How to run api tests
--
all tests:

```bash
npm run test:sdk-api
npm run test:api
```
## How to run sdk-ui tests
## How to run ui tests
--
all tests:

```bash
npm run test:sdk-ui
npm run test:ui
```

If there is a necessity to run the exact test or/and suite you need change
Expand All @@ -50,8 +50,8 @@ The test solution contains two main folders: [src](./src) and [tests](./tests).
- [utils](./src/playbook/utils/) folder with utils scripts

[tests](./tests) folder contains sets of:
- [sdk-api](./tests/sdk-api/) endpoints tests, that cover an essential part of [worker](../packages/worker/) and [api](../packages/api/) functionality
- [sdk-ui](./tests/sdk-ui/) UI tests. that cover an essential part of [BE UI](../packages/app/) functionality
- [api](./tests/api/) endpoints tests, that cover an essential part of [worker](../packages/worker/) and [api](../packages/api/) functionality
- [ui](./tests/ui/) UI tests. that cover an essential part of [BE UI](../packages/app/) functionality


The presented logic/code (/utils, /deploy, /contracts) of custom ERC20 token deployment has been taking from
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"license": "MIT",
"scripts": {
"postinstall": "cd src/playbook && npm install",
"test:sdk-api": "jest --verbose",
"test:sdk-ui": "npx playwright test",
"test:api": "jest --verbose",
"test:ui": "npx playwright test",
"dev:be": "docker-compose -f docker-compose.yaml up\n",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --ignore-pattern 'repos' --ignore-pattern 'git add .'"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { defineConfig, devices } from "@playwright/test";
import { config } from "tests/sdk-ui/config";
import { config } from "tests/ui/config";

export default defineConfig({
testDir: "tests/sdk-ui",
testDir: "tests/ui",
fullyParallel: true,
projects: [
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1e23ccd

Please sign in to comment.