bigtest icon indicating copy to clipboard operation
bigtest copied to clipboard

Validate that bigtest has test files to run against

Open dagda1 opened this issue 3 years ago • 1 comments

The bug that was raised for #800 has this testFiles glob:

 "testFiles": [  "src/**/*.test.{ts,js}"],

The correct directory is test and not src.

This is further complicated by the fact that the glob "testFiles": [ "src/**/*.test.{ts,js}"], actually found a match but it was a jest test.

import { waitFor } from './helpers';

describe('waitFor', () => {
 it('should wait for true', async () => {
   const fn = jest.fn().mockReturnValue(true);
// etc.

I definitely do not think this is a one-off and we should fail early if bigtest:

  • finds no tests
  • finds no bigtest tests

Descriptive console warnings should highlight what is wrong

dagda1 avatar Feb 03 '21 14:02 dagda1

Is this related to #635?

minkimcello avatar Feb 03 '21 15:02 minkimcello