Skip to content

Commit

Permalink
Merge pull request #33 from microsoft/connor4312/issue-31
Browse files Browse the repository at this point in the history
fix: handling of relative configuration arguments
  • Loading branch information
connor4312 committed Apr 1, 2024
2 parents e60ccc5 + 42f2a7c commit ca2fa84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*--------------------------------------------------------*/

import * as chokidar from 'chokidar';
import { resolve } from 'path';
import { cliArgs, configFileDefault } from './cli/args.mjs';
import {
ResolvedTestConfiguration,
Expand All @@ -27,7 +28,7 @@ async function main() {
try {
const config =
args.config !== configFileDefault
? await tryLoadConfigFile(args.config)
? await tryLoadConfigFile(resolve(process.cwd(), args.config))
: await loadDefaultConfigFile();

const enabledTests = new Set(
Expand Down Expand Up @@ -177,4 +178,3 @@ async function runConfigs(config: ResolvedTestConfiguration, enabledTests: Set<T

return runPreparedConfigs(config, prepared);
}

0 comments on commit ca2fa84

Please sign in to comment.