-
-
Notifications
You must be signed in to change notification settings - Fork 141
/
envcontext.test.js
31 lines (28 loc) · 774 Bytes
/
envcontext.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { expect, test } from "@jest/globals";
import {
collectDotnetInfo,
collectGccInfo,
collectGoInfo,
collectJavaInfo,
collectNodeInfo,
collectPythonInfo,
collectRustInfo,
getBranch,
getOriginUrl,
listFiles,
} from "./envcontext.js";
test("git tests", () => {
expect(getBranch()).toBeDefined();
expect(getOriginUrl()).toBeDefined();
const files = listFiles();
expect(files.length).toBeGreaterThan(10);
});
test("tools tests", () => {
expect(collectJavaInfo()).toBeDefined();
expect(collectDotnetInfo()).toBeDefined();
expect(collectPythonInfo()).toBeDefined();
expect(collectNodeInfo()).toBeDefined();
expect(collectGccInfo()).toBeDefined();
expect(collectRustInfo()).toBeDefined();
expect(collectGoInfo()).toBeDefined();
});