feat: integrate invitation access, world NPCs, and deployment

This commit is contained in:
2026-09-08 22:22:38 +08:00
parent 2a3125075f
commit 513a3eba31
75 changed files with 9566 additions and 1070 deletions

29
jest.config.js Normal file
View File

@@ -0,0 +1,29 @@
module.exports = {
preset: 'ts-jest',
moduleFileExtensions: ['js', 'json', 'ts'],
roots: ['<rootDir>/src', '<rootDir>/test'],
testRegex: '.*\\.(spec|e2e-spec|integration-spec|perf-spec)\\.ts$',
transform: {
'^.+\\.ts$': 'ts-jest',
},
collectCoverageFrom: [
'**/*.(t|j)s',
],
coverageDirectory: '../coverage',
testEnvironment: 'node',
moduleNameMapper: {
'^src/(.*)$': '<rootDir>/src/$1',
},
// 添加异步处理配置
testTimeout: 10000,
// 强制退出以避免挂起
forceExit: true,
// 检测打开的句柄
detectOpenHandles: true,
// 处理 ES 模块
transformIgnorePatterns: [
'node_modules/(?!(@faker-js/faker)/)',
],
// 设置测试环境变量
setupFilesAfterEnv: ['<rootDir>/test-setup.js'],
};