chore(deps): update @sxzz/eslint-config and related dependencies
- Upgraded @sxzz/eslint-config from version 6.1.1 to 7.0.0 in both pnpm-lock.yaml and pnpm-workspace.yaml. - Updated various dependencies in pnpm-lock.yaml to ensure compatibility with the new eslint configuration. - Added RedisMemoryServer to the test setup for improved testing capabilities alongside MongoDB. Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { mkdirSync } from 'node:fs'
|
||||
import { MongoMemoryServer } from 'mongodb-memory-server'
|
||||
|
||||
import { Logger } from '@nestjs/common'
|
||||
import { RedisMemoryServer } from 'redis-memory-server'
|
||||
|
||||
import {
|
||||
DATA_DIR,
|
||||
@@ -19,7 +18,14 @@ export async function setup() {
|
||||
mkdirSync(USER_ASSET_DIR, { recursive: true })
|
||||
mkdirSync(STATIC_FILE_DIR, { recursive: true })
|
||||
mkdirSync(THEME_DIR, { recursive: true })
|
||||
const db = await MongoMemoryServer.create()
|
||||
await db.stop()
|
||||
|
||||
// Initialize Redis and MongoDB mock server
|
||||
await Promise.all([
|
||||
RedisMemoryServer.create(),
|
||||
MongoMemoryServer.create(),
|
||||
]).then(async ([redis, db]) => {
|
||||
await redis.stop()
|
||||
await db.stop()
|
||||
})
|
||||
}
|
||||
export async function teardown() {}
|
||||
|
||||
591
pnpm-lock.yaml
generated
591
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -36,7 +36,7 @@ catalog:
|
||||
'@socket.io/redis-adapter': 8.3.0
|
||||
'@socket.io/redis-emitter': 5.1.0
|
||||
'@swc/core': 1.11.24
|
||||
'@sxzz/eslint-config': 6.1.1
|
||||
'@sxzz/eslint-config': 7.0.0
|
||||
'@typegoose/auto-increment': 4.13.0
|
||||
'@typegoose/typegoose': 12.15.0
|
||||
'@types/babel__core': 7.20.5
|
||||
|
||||
Reference in New Issue
Block a user