File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import type {
5
5
} from '@seedcompany/nestjs-email' ;
6
6
import type { Server as HttpServer } from 'http' ;
7
7
import { type LRUCache } from 'lru-cache' ;
8
- import { Duration , type DurationLike } from 'luxon' ;
9
- import { nanoid } from 'nanoid' ;
8
+ import { DateTime , Duration , type DurationLike } from 'luxon' ;
9
+ import { customAlphabet } from 'nanoid' ;
10
10
import { type Config as Neo4JDriverConfig } from 'neo4j-driver' ;
11
11
import { BehaviorSubject } from 'rxjs' ;
12
12
import type { Class , Merge , ReadonlyDeep } from 'type-fest' ;
@@ -175,7 +175,9 @@ export const makeConfig = (env: EnvironmentService) =>
175
175
username,
176
176
password,
177
177
database : this . jest
178
- ? `test.${ nanoid ( ) . replace ( / [ - _ ] / g, '' ) } `
178
+ ? `test.${ DateTime . now ( ) . toFormat (
179
+ 'y-MM-dd.HH-mm-ss' ,
180
+ ) } .${ customAlphabet ( 'abcdefghjkmnpqrstuvwxyz' , 7 ) ( ) } `
179
181
: database ,
180
182
ephemeral : this . jest ,
181
183
driverConfig,
You can’t perform that action at this time.
0 commit comments