diff --git a/package-lock.json b/package-lock.json index e10a172..1f98f01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@geek-fun/jest-search", - "version": "0.0.5", + "version": "0.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@geek-fun/jest-search", - "version": "0.0.5", + "version": "0.0.7", "license": "MIT", "dependencies": { "debug": "^4.3.4", diff --git a/package.json b/package.json index 3c9e6ae..e6b3788 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@geek-fun/jest-search", - "version": "0.0.6", + "version": "0.0.7", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "description": "Jest preset for running tests with local search platform", diff --git a/src/index.ts b/src/index.ts index 31a5518..b0de410 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,10 +8,9 @@ const globalSetup = async () => { debug(`configPath: ${configPath}, cwdPath: ${process.cwd()}`); try { const configFn = await import(configPath); - debug(`configFn: ${configFn}`); - const config = configFn(); - debug(`final config: ${config}`); - await startEngine(config); + debug(`configFn: ${JSON.stringify(configFn)}`); + debug(`final config: ${configFn}`); + await startEngine(configFn); } catch (err) { debug(`error caught: ${err}`); throw err;