*.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
-
Is there any chance
deno test
glob could include.spec.ts
files?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.ts
files.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
spec
thing in test file names.deno test --help
says 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