Commit fe4ce3c 1 parent 8a0f64b commit fe4ce3c Copy full SHA for fe4ce3c
File tree 2 files changed +5
-8
lines changed
packages/cli/src/benchmark
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ function n8nDir() {
20
20
21
21
writeFileSync (
22
22
path . join ( _n8nDir , 'config' ) ,
23
- JSON . stringify ( { encryptionKey : 'temp_encryption_key' , instanceId : '123' } ) ,
23
+ JSON . stringify ( { encryptionKey : 'temp_encryption_key' , instanceId : 'temp- 123' } ) ,
24
24
'utf-8' ,
25
25
) ;
26
26
27
27
/**
28
- * @TODO Better approach? Setting N8N_USER_FOLDER has no effect
28
+ * @TODO Better approach than overriding ? Setting N8N_USER_FOLDER has no effect
29
29
*/
30
30
const instanceSettings = Container . get ( InstanceSettings ) ;
31
31
instanceSettings . n8nFolder = _n8nDir ;
@@ -46,7 +46,7 @@ async function mainProcess() {
46
46
await main . run ( ) ;
47
47
}
48
48
49
- async function setup ( ) {
49
+ export async function setup ( ) {
50
50
n8nDir ( ) ;
51
51
52
52
await mainProcess ( ) ;
@@ -56,9 +56,6 @@ async function setup() {
56
56
await createOwner ( ) ;
57
57
}
58
58
59
- async function teardown ( ) {
59
+ export async function teardown ( ) {
60
60
await main . stopProcess ( ) ;
61
61
}
62
-
63
- /** Lifecycle hooks to run once before and after all benchmarking tasks. */
64
- export const globalHooks = { setup, teardown } ;
Original file line number Diff line number Diff line change 1
1
import 'reflect-metadata' ;
2
- import { globalHooks } from './lib/global-hooks' ;
2
+ import * as globalHooks from './lib/global-hooks' ;
3
3
import { collectSuites , registerSuites , suiteCount } from './lib/suites' ;
4
4
5
5
/* eslint-disable import/no-extraneous-dependencies */
You can’t perform that action at this time.
0 commit comments