update deps / migrate jest 30
This commit is contained in:
		
							parent
							
								
									40cfaf2b87
								
							
						
					
					
						commit
						ec92919cb1
					
				|  | @ -37,17 +37,17 @@ | |||
| 	}, | ||||
| 	"optionalDependencies": { | ||||
| 		"@swc/core-android-arm64": "1.3.11", | ||||
| 		"@swc/core-darwin-arm64": "1.12.0", | ||||
| 		"@swc/core-darwin-x64": "1.12.0", | ||||
| 		"@swc/core-darwin-arm64": "1.12.1", | ||||
| 		"@swc/core-darwin-x64": "1.12.1", | ||||
| 		"@swc/core-freebsd-x64": "1.3.11", | ||||
| 		"@swc/core-linux-arm-gnueabihf": "1.12.0", | ||||
| 		"@swc/core-linux-arm64-gnu": "1.12.0", | ||||
| 		"@swc/core-linux-arm64-musl": "1.12.0", | ||||
| 		"@swc/core-linux-x64-gnu": "1.12.0", | ||||
| 		"@swc/core-linux-x64-musl": "1.12.0", | ||||
| 		"@swc/core-win32-arm64-msvc": "1.12.0", | ||||
| 		"@swc/core-win32-ia32-msvc": "1.12.0", | ||||
| 		"@swc/core-win32-x64-msvc": "1.12.0", | ||||
| 		"@swc/core-linux-arm-gnueabihf": "1.12.1", | ||||
| 		"@swc/core-linux-arm64-gnu": "1.12.1", | ||||
| 		"@swc/core-linux-arm64-musl": "1.12.1", | ||||
| 		"@swc/core-linux-x64-gnu": "1.12.1", | ||||
| 		"@swc/core-linux-x64-musl": "1.12.1", | ||||
| 		"@swc/core-win32-arm64-msvc": "1.12.1", | ||||
| 		"@swc/core-win32-ia32-msvc": "1.12.1", | ||||
| 		"@swc/core-win32-x64-msvc": "1.12.1", | ||||
| 		"@tensorflow/tfjs": "4.22.0", | ||||
| 		"@tensorflow/tfjs-node": "4.22.0", | ||||
| 		"bufferutil": "4.0.9", | ||||
|  | @ -67,31 +67,31 @@ | |||
| 		"utf-8-validate": "6.0.5" | ||||
| 	}, | ||||
| 	"dependencies": { | ||||
| 		"@aws-sdk/client-s3": "3.826.0", | ||||
| 		"@aws-sdk/lib-storage": "3.826.0", | ||||
| 		"@aws-sdk/client-s3": "3.828.0", | ||||
| 		"@aws-sdk/lib-storage": "3.828.0", | ||||
| 		"@discordapp/twemoji": "15.1.0", | ||||
| 		"@fastify/accepts": "5.0.2", | ||||
| 		"@fastify/cookie": "11.0.2", | ||||
| 		"@fastify/cors": "11.0.1", | ||||
| 		"@fastify/express": "4.0.2", | ||||
| 		"@fastify/http-proxy": "11.1.2", | ||||
| 		"@fastify/http-proxy": "11.2.0", | ||||
| 		"@fastify/multipart": "9.0.3", | ||||
| 		"@fastify/static": "8.2.0", | ||||
| 		"@fastify/view": "11.1.0", | ||||
| 		"@misskey-dev/sharp-read-bmp": "1.2.0", | ||||
| 		"@misskey-dev/sharp-read-bmp": "1.3.0", | ||||
| 		"@misskey-dev/summaly": "5.2.1", | ||||
| 		"@napi-rs/canvas": "0.1.71", | ||||
| 		"@nestjs/common": "11.1.3", | ||||
| 		"@nestjs/core": "11.1.3", | ||||
| 		"@nestjs/testing": "11.1.3", | ||||
| 		"@peertube/http-signature": "1.7.0", | ||||
| 		"@sentry/node": "9.22.0", | ||||
| 		"@sentry/profiling-node": "9.22.0", | ||||
| 		"@sentry/node": "9.28.1", | ||||
| 		"@sentry/profiling-node": "9.28.1", | ||||
| 		"@simplewebauthn/server": "13.1.1", | ||||
| 		"@sinonjs/fake-timers": "14.0.0", | ||||
| 		"@smithy/node-http-handler": "4.0.5", | ||||
| 		"@smithy/node-http-handler": "4.0.6", | ||||
| 		"@swc/cli": "0.7.7", | ||||
| 		"@swc/core": "1.12.0", | ||||
| 		"@swc/core": "1.12.1", | ||||
| 		"@twemoji/parser": "16.0.0", | ||||
| 		"@types/redis-info": "3.0.3", | ||||
| 		"accepts": "1.3.8", | ||||
|  | @ -112,14 +112,14 @@ | |||
| 		"content-disposition": "0.5.4", | ||||
| 		"date-fns": "4.1.0", | ||||
| 		"deep-email-validator": "0.1.21", | ||||
| 		"fastify": "5.3.3", | ||||
| 		"fastify": "5.4.0", | ||||
| 		"fastify-raw-body": "5.0.0", | ||||
| 		"feed": "5.0.1", | ||||
| 		"feed": "5.1.0", | ||||
| 		"file-type": "21.0.0", | ||||
| 		"fluent-ffmpeg": "2.1.3", | ||||
| 		"form-data": "4.0.3", | ||||
| 		"got": "14.4.7", | ||||
| 		"happy-dom": "17.4.7", | ||||
| 		"happy-dom": "18.0.1", | ||||
| 		"hpagent": "1.2.0", | ||||
| 		"htmlescape": "1.1.1", | ||||
| 		"http-link-header": "1.1.3", | ||||
|  | @ -144,7 +144,7 @@ | |||
| 		"nested-property": "4.0.0", | ||||
| 		"node-fetch": "3.3.2", | ||||
| 		"nodemailer": "7.0.3", | ||||
| 		"nsfwjs": "4.2.0", | ||||
| 		"nsfwjs": "4.2.1", | ||||
| 		"oauth": "0.10.2", | ||||
| 		"oauth2orize": "1.12.0", | ||||
| 		"oauth2orize-pkce": "0.1.2", | ||||
|  | @ -168,7 +168,7 @@ | |||
| 		"sanitize-html": "2.17.0", | ||||
| 		"secure-json-parse": "4.0.0", | ||||
| 		"semver": "7.7.2", | ||||
| 		"sharp": "0.33.5", | ||||
| 		"sharp": "0.34.2", | ||||
| 		"slacc": "0.0.10", | ||||
| 		"strict-event-emitter-types": "2.0.0", | ||||
| 		"stringz": "2.1.0", | ||||
|  | @ -179,14 +179,14 @@ | |||
| 		"tsconfig-paths": "4.2.0", | ||||
| 		"typeorm": "0.3.24", | ||||
| 		"typescript": "5.8.3", | ||||
| 		"ulid": "3.0.0", | ||||
| 		"ulid": "3.0.1", | ||||
| 		"vary": "1.1.2", | ||||
| 		"web-push": "3.6.7", | ||||
| 		"ws": "8.18.2", | ||||
| 		"xev": "3.0.2" | ||||
| 	}, | ||||
| 	"devDependencies": { | ||||
| 		"@jest/globals": "29.7.0", | ||||
| 		"@jest/globals": "30.0.0", | ||||
| 		"@nestjs/platform-express": "11.1.3", | ||||
| 		"@sentry/vue": "9.28.1", | ||||
| 		"@simplewebauthn/types": "12.0.0", | ||||
|  | @ -204,9 +204,9 @@ | |||
| 		"@types/jsdom": "21.1.7", | ||||
| 		"@types/jsonld": "1.5.15", | ||||
| 		"@types/jsrsasign": "10.5.15", | ||||
| 		"@types/mime-types": "2.1.4", | ||||
| 		"@types/mime-types": "3.0.1", | ||||
| 		"@types/ms": "2.1.0", | ||||
| 		"@types/node": "22.15.31", | ||||
| 		"@types/node": "24.0.1", | ||||
| 		"@types/nodemailer": "6.4.17", | ||||
| 		"@types/oauth": "0.9.6", | ||||
| 		"@types/oauth2orize": "1.11.5", | ||||
|  | @ -234,8 +234,8 @@ | |||
| 		"eslint-plugin-import": "2.31.0", | ||||
| 		"execa": "9.6.0", | ||||
| 		"fkill": "9.0.0", | ||||
| 		"jest": "29.7.0", | ||||
| 		"jest-mock": "29.7.0", | ||||
| 		"jest": "30.0.0", | ||||
| 		"jest-mock": "30.0.0", | ||||
| 		"nodemon": "3.1.10", | ||||
| 		"pid-port": "1.0.2", | ||||
| 		"simple-oauth2": "5.1.0", | ||||
|  |  | |||
|  | @ -26,7 +26,7 @@ import { GlobalEventService } from '@/core/GlobalEventService.js'; | |||
| import { ModerationLogService } from '@/core/ModerationLogService.js'; | ||||
| import { secureRndstr } from '@/misc/secure-rndstr.js'; | ||||
| import type { TestingModule } from '@nestjs/testing'; | ||||
| import type { MockFunctionMetadata } from 'jest-mock'; | ||||
| import type { MockMetadata } from 'jest-mock'; | ||||
| 
 | ||||
| const moduleMocker = new ModuleMocker(global); | ||||
| 
 | ||||
|  | @ -84,7 +84,7 @@ describe('AnnouncementService', () => { | |||
| 						log: jest.fn(), | ||||
| 					}; | ||||
| 				} else if (typeof token === 'function') { | ||||
| 					const mockMetadata = moduleMocker.getMetadata(token) as MockFunctionMetadata<any, any>; | ||||
| 					const mockMetadata = moduleMocker.getMetadata(token) as MockMetadata<any, any>; | ||||
| 					const Mock = moduleMocker.generateFromMetadata(mockMetadata); | ||||
| 					return new Mock(); | ||||
| 				} | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ import { FileInfo, FileInfoService } from '@/core/FileInfoService.js'; | |||
| import { AiService } from '@/core/AiService.js'; | ||||
| import { LoggerService } from '@/core/LoggerService.js'; | ||||
| import type { TestingModule } from '@nestjs/testing'; | ||||
| import type { MockFunctionMetadata } from 'jest-mock'; | ||||
| import type { MockMetadata } from 'jest-mock'; | ||||
| 
 | ||||
| const _filename = fileURLToPath(import.meta.url); | ||||
| const _dirname = dirname(_filename); | ||||
|  | @ -34,7 +34,7 @@ describe('FileInfoService', () => { | |||
| 		delete fi.sensitive; | ||||
| 		delete fi.blurhash; | ||||
| 		delete fi.porn; | ||||
| 		 | ||||
| 
 | ||||
| 		return fi; | ||||
| 	} | ||||
| 
 | ||||
|  | @ -54,7 +54,7 @@ describe('FileInfoService', () => { | |||
| 				//	return {  };
 | ||||
| 				//}
 | ||||
| 				if (typeof token === 'function') { | ||||
| 					const mockMetadata = moduleMocker.getMetadata(token) as MockFunctionMetadata<any, any>; | ||||
| 					const mockMetadata = moduleMocker.getMetadata(token) as MockMetadata<any, any>; | ||||
| 					const Mock = moduleMocker.generateFromMetadata(mockMetadata); | ||||
| 					return new Mock(); | ||||
| 				} | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ import { jest } from '@jest/globals'; | |||
| import { Test } from '@nestjs/testing'; | ||||
| import { ModuleMocker } from 'jest-mock'; | ||||
| import type { TestingModule } from '@nestjs/testing'; | ||||
| import type { MockFunctionMetadata } from 'jest-mock'; | ||||
| import type { MockMetadata } from 'jest-mock'; | ||||
| import { ApRendererService } from '@/core/activitypub/ApRendererService.js'; | ||||
| import { UserEntityService } from '@/core/entities/UserEntityService.js'; | ||||
| import { IdService } from '@/core/IdService.js'; | ||||
|  | @ -45,7 +45,7 @@ describe('RelayService', () => { | |||
| 					return { deliver: jest.fn() }; | ||||
| 				} | ||||
| 				if (typeof token === 'function') { | ||||
| 					const mockMetadata = moduleMocker.getMetadata(token) as MockFunctionMetadata<any, any>; | ||||
| 					const mockMetadata = moduleMocker.getMetadata(token) as MockMetadata<any, any>; | ||||
| 					const Mock = moduleMocker.generateFromMetadata(mockMetadata); | ||||
| 					return new Mock(); | ||||
| 				} | ||||
|  |  | |||
|  | @ -11,7 +11,7 @@ import { ModuleMocker } from 'jest-mock'; | |||
| import { Test } from '@nestjs/testing'; | ||||
| import * as lolex from '@sinonjs/fake-timers'; | ||||
| import type { TestingModule } from '@nestjs/testing'; | ||||
| import type { MockFunctionMetadata } from 'jest-mock'; | ||||
| import type { MockMetadata } from 'jest-mock'; | ||||
| import { GlobalModule } from '@/GlobalModule.js'; | ||||
| import { RoleService } from '@/core/RoleService.js'; | ||||
| import { | ||||
|  | @ -137,7 +137,7 @@ describe('RoleService', () => { | |||
| 					return { fetch: jest.fn() }; | ||||
| 				} | ||||
| 				if (typeof token === 'function') { | ||||
| 					const mockMetadata = moduleMocker.getMetadata(token) as MockFunctionMetadata<any, any>; | ||||
| 					const mockMetadata = moduleMocker.getMetadata(token) as MockMetadata<any, any>; | ||||
| 					const Mock = moduleMocker.generateFromMetadata(mockMetadata); | ||||
| 					return new Mock(); | ||||
| 				} | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ import { Test, TestingModule } from '@nestjs/testing'; | |||
| import { FastifyReply, FastifyRequest } from 'fastify'; | ||||
| import { AuthenticationResponseJSON } from '@simplewebauthn/types'; | ||||
| import { HttpHeader } from 'fastify/types/utils.js'; | ||||
| import { MockFunctionMetadata, ModuleMocker } from 'jest-mock'; | ||||
| import { MockMetadata, ModuleMocker } from 'jest-mock'; | ||||
| import { MiUser } from '@/models/User.js'; | ||||
| import { MiUserProfile, UserProfilesRepository, UsersRepository } from '@/models/_.js'; | ||||
| import { IdService } from '@/core/IdService.js'; | ||||
|  | @ -95,7 +95,7 @@ describe('SigninWithPasskeyApiService', () => { | |||
| 			], | ||||
| 		}).useMocker((token) => { | ||||
| 			if (typeof token === 'function') { | ||||
| 				const mockMetadata = moduleMocker.getMetadata(token) as MockFunctionMetadata<any, any>; | ||||
| 				const mockMetadata = moduleMocker.getMetadata(token) as MockMetadata<any, any>; | ||||
| 				const Mock = moduleMocker.generateFromMetadata(mockMetadata); | ||||
| 				return new Mock(); | ||||
| 			} | ||||
|  |  | |||
							
								
								
									
										4925
									
								
								pnpm-lock.yaml
								
								
								
								
							
							
						
						
									
										4925
									
								
								pnpm-lock.yaml
								
								
								
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
		Reference in New Issue