Skip to content

Commit 11e830a

Browse files
feat: allow reading cjs config file
1 parent 4b8f51e commit 11e830a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {start} from '@shelf/elasticsearch-local';
44
const cwd = require('cwd');
55

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

1010
return start(config);

0 commit comments

Comments
 (0)