From 77f1cea677d8509532a0d5fa6fc2df476dd30c9a Mon Sep 17 00:00:00 2001 From: Ross Blair Date: Tue, 26 Oct 2021 14:34:10 -0500 Subject: [PATCH] try __dirname based join to find testdata instead of relying on process.cwd --- bids-validator/tests/cli.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bids-validator/tests/cli.spec.js b/bids-validator/tests/cli.spec.js index ae5735eee..f7f2de177 100644 --- a/bids-validator/tests/cli.spec.js +++ b/bids-validator/tests/cli.spec.js @@ -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')