Skip to content

Commit

Permalink
chore: include aliases and extensiosn in test cfg
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <opensource@tunnckocore.com>
  • Loading branch information
tunnckoCore committed Sep 18, 2019
1 parent 9286fa9 commit 3b63a04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions @tunnckocore/utils/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function createAliases(cwd = process.cwd(), sourceDirectory) {
// package specific package.json
const packageJson = parseJson(pkgJsonPath, 'utf8');

/* istanbul ignore next */
if (Object.keys(packageJson).length === 0) {
throw new Error(
`Cannot find package.json or cannot parse it: ${pkgJsonPath}`,
Expand Down
4 changes: 2 additions & 2 deletions jest.test.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
// ! todo remove when fixed
/koa-better-body/.toString(),
],
// moduleNameMapper: alias,
// moduleFileExtensions: exts,
moduleNameMapper: alias,
moduleFileExtensions: exts,
// runner: './@tunnckocore/jest-runner-babel/src/index.js',
};

0 comments on commit 3b63a04

Please sign in to comment.