Quantcast
Channel: Chutzpah - A JavaScript Test Runner
Viewing all articles
Browse latest Browse all 1864

New Post: Store Typescript Generated JS file in the TestHarnessDirectory

$
0
0
Thanks for getting back to me so quickly I had not considered the issue with RequireJS. I like the idea of recreating the structure inside the temporary folder, maybe it could be a requirement that the chutzpah.json is placed at the root of project. This would allow us to identify the folder structure and recreate it completely, irrelevant of the ../ paths. This solution would not work for files stored on a different drive.

I initially thoughts that using the already generated JS files from TS would be more simple, however I agree with your concerns. Also the JS file might not have been generated already or have been placed in a different output directory (like the bin).

If this seem sensible then I believe it would be a good idea to reuse the TestHarnessDirectory setting along with an addition setting to indicate if generated JS files should be placed in the directory. This will mean the behavior will not change for existing users that have a custom TestHarnessDirectory.

I look forward to hearing your thoughts.

Viewing all articles
Browse latest Browse all 1864

Trending Articles