Closed ForbesLindesay closed 9 years ago
Three things:
Was also thinking there might be cases where we have multiple test cases:
tests/1/expected.txt
tests/1/input.txt
tests/1/options.json
tests/1/locals.json
tests/2/expected.txt
tests/2/input.txt
tests/2/options.json
tests/2/locals.json
jstransformer-tester
? Or test-jstransformer
, so that it's not mistaken as a transform?In Boilerplate......
npm i test-jstransformer --save-dev
"scipts": {"test": "test-jstransformer tests"}
, or something, or maybe tests is the default folder it checks
We should do one of two things with the tests:
if
statements.I'm going to work on writing up option 1, since this seems to be the way we are moving with what's currently there and it will make it easier to ensure all jstransformers have the same level of test coverage. I also intend to require the test case to explicitly state which endpoints expose "dependencies", since as jstransformers/jstransformer-jade#1 demonstrates, it's not entirely clear to implementers what is required.