What does "spec" mean in Javascript Testing

JavascriptTestingJasmineTdd

Javascript Problem Overview


I'm fairly new to the Javascript world (coming from Android) so I've been reading up on how to setup Mocha/Jasmine to get my test environment in place. I've noticed a convention of "spec" in reference to test directories, file suffix, suite names, and/or tests/assertions.

Is this specific to testing in Javascript? And what does "spec" actually stand for? Specification, Expectation, or ?

Javascript Solutions


Solution 1 - Javascript

Spec is short for "Specification" as @DavinTryon suggested above.

Specification in terms of a test refer to the technical details of a given feature or application which must be fulfilled. The best way to think of this is as the technical specifications for a given unit of code to pass successfully. https://en.wikipedia.org/wiki/Unit_testing

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionbasudzView Question on Stackoverflow
Solution 1 - JavascriptBenjamin DeanView Answer on Stackoverflow