-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.ts
62 lines (56 loc) · 1.86 KB
/
config.example.ts
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { Engines } from "./nodeenv.js";
import { Environment, Project } from "./types.js";
// defaults
export const runBenchmarksTimes = 3;
export const coolDownBeforeAndBetweenBenchmarksSeconds = 5;
export const defaultEngines: Engines = {
// will use this if there is no "engines" section in package.json
node: "16.13.0",
npm: "8.1.0",
};
export const environment: Partial<Environment> = {
deviceName: "Work Laptop", // detected automatically from `os.hostname` if not specified
platform: "linux", // detected automatically from `process.platform` if not specified
platformDetails: "WSL2 (Ubuntu 22.04.1)", // TODO: maybe detect automatically using https://www.npmjs.com/package/getos
// BIOS Settings (optional):
"bios: Intel® Turbo Boost Max Technology 3.0": true,
// Other Settings (optional):
batteryLevelPercent: 100,
powerMode: "Best performance",
charging: true,
};
// reporters config
export const groupByKey: keyof Environment = "platform"; // this key will be used to group chart results, for example if you're comparing running on different devices, use `deviceName`, etc.
// runners config
export const projects: Project[] = [
{
name: "My App",
gitUrl: "https://github.com/my/app",
gitCliConfigOverrides: {
"core.autocrlf": true,
},
rootFolder: "Frontend/src",
patches: [
{
name: "disable some failing test",
file: "tests/some.spec.js",
search: "it('some test name',",
replace: "xit('some test name',",
},
{
name: "delete some failing test",
file: "tests/docker.spec.js",
delete: true,
},
{
name: "ignore some folder",
file: ".gitignore",
append: "some-folder",
},
],
commands: [
{ name: "build", npmScriptName: "build-dev" },
{ name: "unit test", npmScriptName: "test-karma" },
],
},
];