@amxts/cli 0.1.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,21 @@
1
+ // #if bun
1
2
  import { expect, setDefaultTimeout, test } from "bun:test";
3
+ // #endif
4
+ // #if !bun
5
+ import { expect, test, vi } from "vitest";
6
+ // #endif
2
7
  import { setup } from "@amxts/core/test-utils";
3
8
  // #if menu-core
4
9
  import { menusOf } from "@amxts/menu-core/testing";
5
10
  // #endif
6
11
 
7
12
  // The first run compiles the plugins; the next ones take them from the cache.
13
+ // #if bun
8
14
  setDefaultTimeout(120_000);
15
+ // #endif
16
+ // #if !bun
17
+ vi.setConfig({ testTimeout: 120_000 });
18
+ // #endif
9
19
 
10
20
  test("a player who joins is greeted", async () => {
11
21
  const server = await setup();
@@ -4,7 +4,7 @@
4
4
  "lib": ["ES2022"],
5
5
  "module": "ESNext",
6
6
  "moduleResolution": "bundler",
7
- "types": ["bun"],
7
+ "types": ["{{test.types}}"],
8
8
  "strict": true,
9
9
  "noEmit": true,
10
10
  "skipLibCheck": true