Skip to content

Commit f6b2be2

Browse files
committed
wip
1 parent ecc9aab commit f6b2be2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/unit/constants.test.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,21 @@ describe("constants", () => {
3636
})
3737
})
3838
describe("version", () => {
39-
4039
beforeAll(() => {
41-
// create tmpdir and add package.json
40+
// TODO create tmpdir
41+
})
42+
43+
beforeEach(() => {
44+
// TODO copy package.json from root to tmpdir
45+
})
46+
47+
afterEach(() => {
48+
// TODO delete package.json in tmpdir
4249
})
4350

4451
afterAll(() => {
4552
// clean up
53+
// TODO remove tmpdir
4654
})
4755
it("should return the package.json version", () => {
4856
// Source: https://gist.github.com/jhorsman/62eeea161a13b80e39f5249281e17c39#gistcomment-2896416

0 commit comments

Comments
 (0)