Skip to content

Commit

Permalink
fix default config for js
Browse files Browse the repository at this point in the history
  • Loading branch information
jperl committed Apr 7, 2020
1 parent 60472a3 commit 3f6e66e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/config.ts
Expand Up @@ -36,8 +36,7 @@ export const loadConfig = (path?: string): Config => {
// use defaults
return {
attribute: process.env.QAW_ATTRIBUTE || DEFAULT_ATTRIBUTE,
// reset jest config
config: '{}',
config: 'node_modules/qawolf/js-jest.config.json',
rootDir: '.qawolf',
testTimeout: 60000,
useTypeScript: false,
Expand Down
2 changes: 1 addition & 1 deletion test/config.test.ts
Expand Up @@ -17,7 +17,7 @@ describe('loadConfig', () => {
it('defaults values when there is no config', () => {
const config = loadConfig('notapath');
expect(config.attribute).toEqual(DEFAULT_ATTRIBUTE);
expect(config.config).toEqual('{}');
expect(config.config).toEqual('node_modules/qawolf/js-jest.config.json');
expect(config.createTemplate).toBeUndefined();
expect(config.rootDir).toEqual('.qawolf');
expect(config.testTimeout).toEqual(60000);
Expand Down

0 comments on commit 3f6e66e

Please sign in to comment.