create-assistant-ui 0.0.77 → 0.0.79

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/run.test.ts +4 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-assistant-ui",
3
- "version": "0.0.77",
3
+ "version": "0.0.79",
4
4
  "description": "Create assistant-ui apps with one command",
5
5
  "keywords": [
6
6
  "cli",
@@ -25,13 +25,13 @@
25
25
  ],
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "assistant-ui": "^0.0.114",
28
+ "assistant-ui": "^0.0.116",
29
29
  "cross-spawn": "^7.0.6"
30
30
  },
31
31
  "devDependencies": {
32
- "@assistant-ui/x-buildutils": "0.0.25",
32
+ "@assistant-ui/x-buildutils": "0.0.27",
33
33
  "@types/cross-spawn": "^6.0.6",
34
- "vitest": "^4.1.11"
34
+ "vitest": "^5.0.0"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public",
package/src/run.test.ts CHANGED
@@ -20,7 +20,6 @@ const createChild = () =>
20
20
  describe("runSpawn", () => {
21
21
  afterEach(() => {
22
22
  vi.restoreAllMocks();
23
- vi.clearAllMocks();
24
23
  });
25
24
 
26
25
  it("forwards termination signals to the child", async () => {
@@ -34,7 +33,7 @@ describe("runSpawn", () => {
34
33
  .find((listener) => !existingListeners.has(listener));
35
34
 
36
35
  expect(signalHandler).toBeDefined();
37
- signalHandler?.();
36
+ signalHandler?.("SIGTERM");
38
37
  expect(child.kill).toHaveBeenCalledWith("SIGTERM");
39
38
 
40
39
  child.emit("close", 0, null);
@@ -56,8 +55,8 @@ describe("runSpawn", () => {
56
55
  .find((listener) => !existingListeners.has(listener));
57
56
 
58
57
  expect(signalHandler).toBeDefined();
59
- signalHandler?.();
60
- signalHandler?.();
58
+ signalHandler?.("SIGTERM");
59
+ signalHandler?.("SIGTERM");
61
60
 
62
61
  expect(child.kill).toHaveBeenNthCalledWith(1, "SIGTERM");
63
62
  expect(child.kill).toHaveBeenNthCalledWith(2, "SIGKILL");
@@ -99,7 +98,6 @@ describe("runSpawn", () => {
99
98
  describe("main", () => {
100
99
  afterEach(() => {
101
100
  vi.restoreAllMocks();
102
- vi.clearAllMocks();
103
101
  });
104
102
 
105
103
  it("re-raises a signal forwarded to the child", async () => {
@@ -120,7 +118,7 @@ describe("main", () => {
120
118
  .listeners("SIGTERM")
121
119
  .find((listener) => !existingListeners.has(listener));
122
120
  expect(signalHandler).toBeDefined();
123
- signalHandler?.();
121
+ signalHandler?.("SIGTERM");
124
122
  child.emit("close", null, "SIGTERM");
125
123
 
126
124
  await expect(result).rejects.toThrow("process.exit");