Skip to content

Commit

Permalink
try __dirname based join to find testdata instead of relying on proce…
Browse files Browse the repository at this point in the history
…ss.cwd
  • Loading branch information
rwblair committed Oct 26, 2021
1 parent 3bcc8be commit 77f1cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bids-validator/tests/cli.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import cli from '../cli'
import path from 'path'

const dir = process.cwd()
const data_dir = path.join(dir, 'bids-validator', 'tests', 'data')
const data_dir = path.join(__dirname, 'data')
const data_with_errors = path.join(data_dir, 'empty_files')
const data_without_errors = path.join(data_dir, 'valid_dataset')

Expand Down

0 comments on commit 77f1cea

Please sign in to comment.