Skip to content

Commit e64acfa

Browse files
committed
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>
1 parent 3a8d1ed commit e64acfa

File tree

3 files changed

+285
-314
lines changed

3 files changed

+285
-314
lines changed

apps/core/test/setup.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { mkdirSync } from 'node:fs'
22
import { MongoMemoryServer } from 'mongodb-memory-server'
3-
4-
import { Logger } from '@nestjs/common'
3+
import { RedisMemoryServer } from 'redis-memory-server'
54

65
import {
76
DATA_DIR,
@@ -19,7 +18,14 @@ export async function setup() {
1918
mkdirSync(USER_ASSET_DIR, { recursive: true })
2019
mkdirSync(STATIC_FILE_DIR, { recursive: true })
2120
mkdirSync(THEME_DIR, { recursive: true })
22-
const db = await MongoMemoryServer.create()
23-
await db.stop()
21+
22+
// Initialize Redis and MongoDB mock server
23+
await Promise.all([
24+
RedisMemoryServer.create(),
25+
MongoMemoryServer.create(),
26+
]).then(async ([redis, db]) => {
27+
await redis.stop()
28+
await db.stop()
29+
})
2430
}
2531
export async function teardown() {}

0 commit comments

Comments
 (0)