Skip to content

Commit

Permalink
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/config-utils.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/config-utils.test.js.map
7 changes: 4 additions & 3 deletions src/config-utils.test.ts
@@ -264,7 +264,10 @@ test("Default queries and those from config file can be overridden in action fil
queries:
- uses: ./foo`;

// This config item should take precedence.
fs.writeFileSync(path.join(tmpDir, 'input'), inputFileContents, 'utf8');
setInput('config-file', 'input');

// This config item should take precedence over the config file and the default queries.
setInput('queries', './override');

fs.mkdirSync(path.join(tmpDir, 'foo'));
@@ -289,8 +292,6 @@ test("Default queries and those from config file can be overridden in action fil
},
});

fs.writeFileSync(path.join(tmpDir, 'input'), inputFileContents, 'utf8');
setInput('config-file', 'input');
setInput('languages', 'javascript');

const config = await configUtils.initConfig();

0 comments on commit f57bf21

Please sign in to comment.