We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a4c14f commit ecc9aabCopy full SHA for ecc9aab
test/unit/constants.test.ts
@@ -36,13 +36,26 @@ describe("constants", () => {
36
})
37
38
describe("version", () => {
39
+
40
+ beforeAll(() => {
41
+ // create tmpdir and add package.json
42
+ })
43
44
+ afterAll(() => {
45
+ // clean up
46
47
it("should return the package.json version", () => {
48
// Source: https://gist.github.com/jhorsman/62eeea161a13b80e39f5249281e17c39#gistcomment-2896416
49
const validSemVar = new RegExp("^(0|[1-9]d*).(0|[1-9]d*).(0|[1-9]d*)")
50
const isValidSemVar = validSemVar.test(version)
51
expect(version).not.toBe(null)
52
expect(isValidSemVar).toBe(true)
53
54
+ it("should return 'development' if package.json version is missing", () => {
55
+ // TODO
56
57
+ expect(version).toBe("development")
58
59
60
61
describe("commit", () => {
0 commit comments