diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ac0eee..f1502b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,7 @@ - Reindex parent after delete @robgietema - Fix addable in types endpoint @robgietema - Fix import order of profiles @robgietema +- Fix test runner for projects @robgietema ### Internal diff --git a/config.js.sample b/config.js.sample index 7fdecdd..a1e0a7a 100644 --- a/config.js.sample +++ b/config.js.sample @@ -1,4 +1,4 @@ -import events from './events'; +import events from './src/events'; export const config = { connection: { diff --git a/src/helpers/tests/tests.js b/src/helpers/tests/tests.js index 39e79cc..dae6c0a 100644 --- a/src/helpers/tests/tests.js +++ b/src/helpers/tests/tests.js @@ -17,7 +17,7 @@ import _, { indexOf, join, slice } from 'lodash'; function readFile(filename) { // Read request file const data = fs - .readFileSync(path.join(__dirname, `../../../docs/examples/${filename}`)) + .readFileSync(`${process.cwd()}/docs/examples/${filename}`) .toString() .split(/\r?\n/);