aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-ecosystem/src/packages.ts
blob: 677bfdf1693419f05419fa342ab824e5709d75e9 (plain) (blame)
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
63
64
65
66
67
68
69
export type Package = {
  readonly name: string;
  readonly repository: string;
  readonly cwd?: string;
  readonly tests?: {
    readonly style: "jest" | "ava" | "tape" | "custom";
    readonly include: string[];
    readonly exclude?: string[];
    readonly disabled?: boolean;
  };
};

export const packages: Package[] = [
  {
    name: "lodash",
    repository: github("lodash/lodash"),
    tests: {
      style: "jest",
      include: ["test/*.js"],
      exclude: [
        "debounce.test.js", // hangs runner
        "size.test.js", // require('vm').runInNewContext()
        "merge.test.js", // failing
      ],
    },
  },
  {
    name: "chalk",
    repository: github("chalk/chalk"),
    tests: {
      style: "ava",
      include: ["test/*.js"],
    },
  },
  {
    name: "request",
    repository: github("request/request"),
    tests: {
      style: "tape",
      include: ["tests/*.js"],
    },
  },
  {
    name: "commander",
    repository: github("tj/commander.js"),
    tests: {
      style: "jest",
      include: ["tests/*.js"],
    },
  },
  {
    name: "express",
    repository: github("expressjs/express"),
    tests: {
      style: "jest",
      include: ["test/**/*.js"],
      exclude: [
        "test/res.sendStatus.js", // https://github.com/oven-sh/bun/issues/887
        "test/Route.js", // https://github.com/oven-sh/bun/issues/2030
      ],
      // Most tests fail due to lack of "http2"
      disabled: true,
    },
  },
];

function github(repository: string): string {
  return `git@github.com:${repository}.git`;
}