Skip to content

Commit

Permalink
debug path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Blankll committed Jul 12, 2023
1 parent 4dc7f14 commit 88761ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 3 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 88761ea

Please sign in to comment.