npm run ci 不能取消关闭csrf,因为我做的是api,所以不需要这个 app.config.security.csrf.ignoreJSON 如何取消对test文件夹下文件的验证,我没写test
最小可复现仓库 复现步骤,错误日志以及相关配置egg deprecated [egg-security] app.config.security.csrf.ignoreJSON
is not safe now, please disable it. node_modules\egg-core\lib\lifecycle.js:92:9
1) test/app/service/hotel.test.js GET /hotels should work: SequelizeDatabaseError: Table 'egg-sequelize-ts-unittest.hotel' doesn't exist
test/app/service/hotel.test.js GET /hotels 1) should work 2) "after each" hook for "should work"
相关环境信息- 操作系统:win10
- Node 版本:11.10.0
- Egg 版本:2.22