*.spec.ts files for deno test #9858
FernandoBasso
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any chance
deno testglob could include.spec.tsfiles?The rationale behind this is that tests can also be considered an specification for how a module, function, etc. behaves and in that case, should a project really embrace this concept, it would make sense to have tests (specs) written in
.spec.tsfiles.I first learned of this “tests as specs and examples” idea in the HtDP book, and have worked in some projects which actually use “spec” instead of “test” in the filenames. Jest is an example of testing framework that accepts this
specthing in test file names.deno test --helpsays thatis the current glob. Given the reasons explained above, I think it would be nice to have the glob be this instead:
Beta Was this translation helpful? Give feedback.
All reactions