mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-09 01:16:15 -08:00
- Introduced `stalker-mock-server` with TypeScript configuration for local development and testing. - Updated `playwright.config.ts` to run both Angular app and mock server in parallel during e2e tests. - Created comprehensive e2e tests for Stalker portal functionality, including health checks, portal addition, and content loading. - Added detailed architecture documentation for both `stalker-mock-server` and `xtream-mock-server`, outlining design decisions, data flow, and API protocols. - Implemented `xtream-mock-server` to simulate Xtream Codes API for local development and testing, with corresponding e2e tests. - Enhanced test isolation by resetting mock server state before each test run.
39 lines
1.1 KiB
JSON
39 lines
1.1 KiB
JSON
{
|
|
"name": "stalker-mock-server",
|
|
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
"projectType": "application",
|
|
"sourceRoot": "apps/stalker-mock-server/src",
|
|
"tags": ["scope:dev-tools"],
|
|
"targets": {
|
|
"serve": {
|
|
"continuous": true,
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "pnpm tsx apps/stalker-mock-server/src/main.ts",
|
|
"cwd": "{workspaceRoot}",
|
|
"color": true,
|
|
"env": {
|
|
"PORT": "3210",
|
|
"NODE_ENV": "development"
|
|
}
|
|
}
|
|
},
|
|
"serve-with-watch": {
|
|
"continuous": true,
|
|
"executor": "nx:run-commands",
|
|
"options": {
|
|
"command": "pnpm tsx watch apps/stalker-mock-server/src/main.ts",
|
|
"cwd": "{workspaceRoot}",
|
|
"color": true,
|
|
"env": {
|
|
"PORT": "3210",
|
|
"NODE_ENV": "development"
|
|
}
|
|
}
|
|
},
|
|
"lint": {
|
|
"executor": "@nx/eslint:lint"
|
|
}
|
|
}
|
|
}
|