Skip to content

Commit

Permalink
feat: allow reading cjs config file
Browse files Browse the repository at this point in the history
  • Loading branch information
slavik-chapelskyi committed Aug 25, 2023
1 parent 4b8f51e commit 11e830a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {start} from '@shelf/elasticsearch-local';
const cwd = require('cwd');

module.exports = function startES() {
const path = process.env.JEST_ELASTICSEARCH_CONFIG || resolve(cwd(), 'jest-es-config.js');
const path = process.env.JEST_ELASTICSEARCH_CONFIG || resolve(cwd(), 'jest-es-config');
const config = require(path)();

return start(config);
Expand Down

0 comments on commit 11e830a

Please sign in to comment.