Skip to content

Could not find test files. Create one and try again #39

@crutchcorn

Description

@crutchcorn

When trying to run tests, I get the following error:

FAIL  src/__type_tests__/pick-deep.test-d.ts
  ● Test suite failed to run

    Could not find test files. Create one and try again

It seems like there isn't anything being found from mlh-tsd in findCustomTestFiles. If, after globby, I output:

    console.log({testFilesPattern, testFiles, cwd})

I get this:

{
  testFilesPattern: [
    'C:\\Users\\crutchcorn\\git\\UnicornUtter\\ts-util-helpers\\src\\__type_tests__\\pick-deep.test-d.ts'
  ],
  testFiles: [],
  cwd: 'C:\\Users\\crutchcorn\\git\\UnicornUtter\\ts-util-helpers'
}

My jest file is this:

module.exports = {
    runner: 'jest-runner-tsd',
    testMatch: ['**/*.test-d.ts'],
};

And my test is indeed in the pick-deep.test-d.ts path

I'm running Windows 11 if that helps

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions