diff --git a/src/utils/tests/static/dirWithoutYmlFile/test.txt b/src/utils/tests/static/dirWithoutYmlFile/test.txt new file mode 100644 index 0000000..fef827a --- /dev/null +++ b/src/utils/tests/static/dirWithoutYmlFile/test.txt @@ -0,0 +1 @@ +This is used for testing \ No newline at end of file diff --git a/src/utils/tests/utilities.test.ts b/src/utils/tests/utilities.test.ts index 7167660..56f3b66 100644 --- a/src/utils/tests/utilities.test.ts +++ b/src/utils/tests/utilities.test.ts @@ -161,8 +161,8 @@ describe('Utilities', () => { expect(() => loadPipelines(nonExistentConfFile)).to.throw(`Configuration directory/file ${chalk.italic(nonExistentConfFile)} could not be found.\nIf this is your first run of LDWorkbench, you might want to use \`npx ldworkbench --init\` to setup an example workbench project.`) expect(() => loadPipelines(nonExistentDirWithFile)).to.throw(`Configuration directory/file ${chalk.italic(nonExistentDirWithFile)} could not be found.\nIf this is your first run of LDWorkbench, you might want to use \`npx ldworkbench --init\` to setup an example workbench project.`) }) - it('should throw if directory has no .yml configuration file', () => { - const dirWithoutConfFile = './data/' + it.only('should throw if directory has no .yml configuration file', () => { + const dirWithoutConfFile = './src/utils/tests/static/dirWithoutYmlFile' expect(() => loadPipelines(dirWithoutConfFile)).to.throw(`No configuration files found matching pattern ${chalk.italic(`${dirWithoutConfFile}/**/*.yml`)}`) }) it('should load multiple configuration files in directory', () => {