create-react-hook icon indicating copy to clipboard operation
create-react-hook copied to clipboard

npm test script not recognize the generated test

Open ZengLawrence opened this issue 5 years ago • 1 comments

npm test script did not recognize the generated test 'test.ts'. I had to rename it to 'index.test.ts' for it to recognize.

Can it be generated as 'index.test.ts'? I think default for jest is to look for pattern '*.test.ts'.

ZengLawrence avatar Jan 20 '20 16:01 ZengLawrence

Right, this bug is caused by switching create react hook itself to use jest. Now I need a way to differentiate between template btests and regular tests.

Hermanya avatar Jan 20 '20 17:01 Hermanya