config:更新项目配置文件
- 优化Jest测试配置 - 更新package.json依赖和脚本
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
moduleFileExtensions: ['js', 'json', 'ts'],
|
moduleFileExtensions: ['js', 'json', 'ts'],
|
||||||
rootDir: 'src',
|
roots: ['<rootDir>/src', '<rootDir>/test'],
|
||||||
testRegex: '.*\\.spec\\.ts$',
|
testRegex: '.*\\.(spec|e2e-spec|integration-spec|perf-spec)\\.ts$',
|
||||||
transform: {
|
transform: {
|
||||||
'^.+\\.(t|j)s$': 'ts-jest',
|
'^.+\\.(t|j)s$': 'ts-jest',
|
||||||
},
|
},
|
||||||
@@ -11,6 +11,6 @@ module.exports = {
|
|||||||
coverageDirectory: '../coverage',
|
coverageDirectory: '../coverage',
|
||||||
testEnvironment: 'node',
|
testEnvironment: 'node',
|
||||||
moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
'^src/(.*)$': '<rootDir>/$1',
|
'^src/(.*)$': '<rootDir>/src/$1',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "pixel-game-server",
|
"name": "pixel-game-server",
|
||||||
"version": "1.1.1",
|
"version": "1.2.0",
|
||||||
"description": "A 2D pixel art game server built with NestJS - 支持验证码登录功能和邮箱冲突检测",
|
"description": "A 2D pixel art game server built with NestJS - 完整的游戏服务器,包含用户认证、位置广播、聊天系统、管理员后台等功能模块",
|
||||||
"main": "dist/main.js",
|
"main": "dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nest start --watch",
|
"dev": "nest start --watch",
|
||||||
@@ -59,6 +59,7 @@
|
|||||||
"zulip-js": "^2.1.0"
|
"zulip-js": "^2.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@faker-js/faker": "^10.2.0",
|
||||||
"@nestjs/cli": "^10.4.9",
|
"@nestjs/cli": "^10.4.9",
|
||||||
"@nestjs/schematics": "^10.2.3",
|
"@nestjs/schematics": "^10.2.3",
|
||||||
"@nestjs/testing": "^10.4.20",
|
"@nestjs/testing": "^10.4.20",
|
||||||
|
|||||||
Reference in New Issue
Block a user