Skip to content

Commit

Permalink
fix: fix setup running on import
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Oct 15, 2023
1 parent 63d48d1 commit 14d1d02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/setup.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { default as db, sequencerDB } from '../src/helpers/mysql';
import { TEST_DATABASE_SUFFIX } from './setupDb';

export const TEST_DATABASE_SUFFIX = '_test';

const setup = async () => {
try {
Expand Down
3 changes: 1 addition & 2 deletions test/setupDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import Connection from 'mysql/lib/Connection';
import bluebird from 'bluebird';
import parse from 'connection-string';
import fs from 'fs';

export const TEST_DATABASE_SUFFIX = '_test';
import { TEST_DATABASE_SUFFIX } from './setup';

// @ts-ignore
const config = parse(process.env.HUB_DATABASE_URL);
Expand Down

0 comments on commit 14d1d02

Please sign in to comment.