当使用 egg-mock 时,如何拿到 mock app 正在监听的端口?
最小可复现仓库请使用 npm init egg --type=simple bug 创建,并上传到你的 GitHub 仓库
import assert = require('assert')
/* tslint:disable-next-line */
import { app } from 'egg-mock/bootstrap'
describe('test/app/controller/xxx.ts', () => {
it('should yyy', () => {
在测试里如何拿到 app.port?
})
## 相关环境信息
- **操作系统**:
- **Node 版本**:
- **Egg 版本**: