@powerhousedao/switchboard 6.2.3-dev.73 → 6.2.3-dev.75
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.
- package/.tsbuild/test/boot-env-isolation.test.d.ts +2 -0
- package/.tsbuild/test/boot-env-isolation.test.d.ts.map +1 -0
- package/.tsbuild/test/boot-preconditions.test.d.ts +2 -0
- package/.tsbuild/test/boot-preconditions.test.d.ts.map +1 -0
- package/.tsbuild/test/pglite-store.test.d.ts +2 -0
- package/.tsbuild/test/pglite-store.test.d.ts.map +1 -0
- package/.tsbuild/test/renown-storage-path.test.d.ts +2 -0
- package/.tsbuild/test/renown-storage-path.test.d.ts.map +1 -0
- package/.tsbuild/tsconfig.tsbuildinfo +1 -1
- package/CHANGELOG.md +51 -0
- package/dist/boot.d.mts +38 -0
- package/dist/boot.d.mts.map +1 -0
- package/dist/boot.mjs +61 -0
- package/dist/boot.mjs.map +1 -0
- package/dist/index.mjs +5 -4
- package/dist/index.mjs.map +1 -1
- package/dist/migrate.mjs +4 -3
- package/dist/migrate.mjs.map +1 -1
- package/dist/plugins/attachments.mjs +3 -3
- package/dist/postgres-url-DTDhBjXX.mjs +11 -0
- package/dist/postgres-url-DTDhBjXX.mjs.map +1 -0
- package/dist/reactor-feature-flags-BtWVQDt6.mjs +324 -0
- package/dist/reactor-feature-flags-BtWVQDt6.mjs.map +1 -0
- package/dist/{server-CrWPtMG6.mjs → server-CJjK7WpR.mjs} +214 -333
- package/dist/server-CJjK7WpR.mjs.map +1 -0
- package/dist/server.d.mts +11 -3
- package/dist/server.d.mts.map +1 -1
- package/dist/server.mjs +3 -3
- package/dist/{utils-Dh845exv.mjs → utils-CTtD7Oti.mjs} +5 -8
- package/dist/{utils-Dh845exv.mjs.map → utils-CTtD7Oti.mjs.map} +1 -1
- package/dist/utils.d.mts +3 -1
- package/dist/utils.d.mts.map +1 -1
- package/dist/utils.mjs +4 -3
- package/package.json +21 -16
- package/test/boot-env-isolation.test.ts +26 -0
- package/test/boot-preconditions.test.ts +149 -0
- package/test/pglite-dialect.test.ts +39 -19
- package/test/pglite-store.test.ts +311 -0
- package/test/renown-storage-path.test.ts +39 -0
- package/test/renown-trust-policy.test.ts +7 -9
- package/tsdown.config.ts +1 -0
- package/dist/server-CrWPtMG6.mjs.map +0 -1
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ThreadedPGlite,
|
|
3
|
+
type PGliteAbortListener,
|
|
4
|
+
type PGliteExitListener,
|
|
5
|
+
type PGliteLike,
|
|
6
|
+
} from "@powerhousedao/reactor-api/pglite-node";
|
|
7
|
+
import type { ILogger } from "document-model";
|
|
8
|
+
import { EventEmitter } from "node:events";
|
|
9
|
+
import { mkdtemp, rm } from "node:fs/promises";
|
|
10
|
+
import { tmpdir } from "node:os";
|
|
11
|
+
import { join } from "node:path";
|
|
12
|
+
import {
|
|
13
|
+
afterEach,
|
|
14
|
+
beforeAll,
|
|
15
|
+
beforeEach,
|
|
16
|
+
describe,
|
|
17
|
+
expect,
|
|
18
|
+
it,
|
|
19
|
+
vi,
|
|
20
|
+
} from "vitest";
|
|
21
|
+
import { initFeatureFlags } from "../src/feature-flags.js";
|
|
22
|
+
import { installFatalErrorShutdown } from "../src/fatal-shutdown.mjs";
|
|
23
|
+
import {
|
|
24
|
+
createPgliteStoreFactory,
|
|
25
|
+
PGLITE_WORKERS_DEFAULT,
|
|
26
|
+
PH_PGLITE_WORKERS,
|
|
27
|
+
resolvePgliteWorkersEnabled,
|
|
28
|
+
routePgliteWorkerFailures,
|
|
29
|
+
terminateOnPoisoned,
|
|
30
|
+
type PgliteStoreOptions,
|
|
31
|
+
vacuumFullTimingFromEnv,
|
|
32
|
+
} from "../src/pglite-store.mjs";
|
|
33
|
+
import type { BooleanFlagSource } from "../src/workflow-runtime.mjs";
|
|
34
|
+
|
|
35
|
+
const BOOT = 90_000;
|
|
36
|
+
|
|
37
|
+
function stubLogger() {
|
|
38
|
+
const logger = {
|
|
39
|
+
verbose: vi.fn(),
|
|
40
|
+
debug: vi.fn(),
|
|
41
|
+
info: vi.fn(),
|
|
42
|
+
warn: vi.fn(),
|
|
43
|
+
error: vi.fn(),
|
|
44
|
+
child: vi.fn(),
|
|
45
|
+
};
|
|
46
|
+
logger.child.mockReturnValue(logger);
|
|
47
|
+
return logger;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** A process stand-in with the fatal shutdown installed; `kill` records it. */
|
|
51
|
+
function fatalProcess() {
|
|
52
|
+
const proc = Object.assign(new EventEmitter(), {
|
|
53
|
+
pid: 4321,
|
|
54
|
+
exitCode: undefined as number | undefined,
|
|
55
|
+
kill: vi.fn(() => true),
|
|
56
|
+
exit: vi.fn(),
|
|
57
|
+
});
|
|
58
|
+
installFatalErrorShutdown(stubLogger() as unknown as ILogger, proc as never);
|
|
59
|
+
return proc;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
class FakeWorkerEvents {
|
|
63
|
+
abort: PGliteAbortListener = () => undefined;
|
|
64
|
+
exit: PGliteExitListener = () => undefined;
|
|
65
|
+
onAbort(listener: PGliteAbortListener): () => void {
|
|
66
|
+
this.abort = listener;
|
|
67
|
+
return () => undefined;
|
|
68
|
+
}
|
|
69
|
+
onExit(listener: PGliteExitListener): () => void {
|
|
70
|
+
this.exit = listener;
|
|
71
|
+
return () => undefined;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
describe("resolvePgliteWorkersEnabled", () => {
|
|
76
|
+
let featureFlags: BooleanFlagSource;
|
|
77
|
+
|
|
78
|
+
const previous = process.env[PH_PGLITE_WORKERS];
|
|
79
|
+
|
|
80
|
+
beforeAll(async () => {
|
|
81
|
+
featureFlags = await initFeatureFlags();
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
beforeEach(() => {
|
|
85
|
+
delete process.env[PH_PGLITE_WORKERS];
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
afterEach(() => {
|
|
89
|
+
if (previous === undefined) delete process.env[PH_PGLITE_WORKERS];
|
|
90
|
+
else process.env[PH_PGLITE_WORKERS] = previous;
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it("falls back to the default constant", async () => {
|
|
94
|
+
expect(PGLITE_WORKERS_DEFAULT).toBe(true);
|
|
95
|
+
await expect(resolvePgliteWorkersEnabled({ featureFlags })).resolves.toBe(
|
|
96
|
+
PGLITE_WORKERS_DEFAULT,
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
it('is turned on by PH_PGLITE_WORKERS="true"', async () => {
|
|
101
|
+
process.env[PH_PGLITE_WORKERS] = "true";
|
|
102
|
+
await expect(resolvePgliteWorkersEnabled({ featureFlags })).resolves.toBe(
|
|
103
|
+
true,
|
|
104
|
+
);
|
|
105
|
+
process.env[PH_PGLITE_WORKERS] = "false";
|
|
106
|
+
await expect(resolvePgliteWorkersEnabled({ featureFlags })).resolves.toBe(
|
|
107
|
+
false,
|
|
108
|
+
);
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
it("lets the host option win either way", async () => {
|
|
112
|
+
process.env[PH_PGLITE_WORKERS] = "true";
|
|
113
|
+
await expect(
|
|
114
|
+
resolvePgliteWorkersEnabled({ featureFlags, option: false }),
|
|
115
|
+
).resolves.toBe(false);
|
|
116
|
+
process.env[PH_PGLITE_WORKERS] = "false";
|
|
117
|
+
await expect(
|
|
118
|
+
resolvePgliteWorkersEnabled({ featureFlags, option: true }),
|
|
119
|
+
).resolves.toBe(true);
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
describe("routePgliteWorkerFailures", () => {
|
|
124
|
+
it("sends an abort to the fatal shutdown", () => {
|
|
125
|
+
const proc = fatalProcess();
|
|
126
|
+
const events = new FakeWorkerEvents();
|
|
127
|
+
routePgliteWorkerFailures(
|
|
128
|
+
events,
|
|
129
|
+
stubLogger() as unknown as ILogger,
|
|
130
|
+
proc as never,
|
|
131
|
+
);
|
|
132
|
+
events.abort("PGlite aborted: disk full");
|
|
133
|
+
expect(proc.kill).toHaveBeenCalledWith(4321, "SIGTERM");
|
|
134
|
+
expect(proc.exitCode).toBe(1);
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
it("sends an unexpected exit to the fatal shutdown, but not a clean close", () => {
|
|
138
|
+
const proc = fatalProcess();
|
|
139
|
+
const events = new FakeWorkerEvents();
|
|
140
|
+
routePgliteWorkerFailures(
|
|
141
|
+
events,
|
|
142
|
+
stubLogger() as unknown as ILogger,
|
|
143
|
+
proc as never,
|
|
144
|
+
);
|
|
145
|
+
events.exit(null);
|
|
146
|
+
expect(proc.kill).not.toHaveBeenCalled();
|
|
147
|
+
events.exit(new Error("worker exited with code 1"));
|
|
148
|
+
expect(proc.kill).toHaveBeenCalledWith(4321, "SIGTERM");
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
it("logs when no fatal shutdown is installed", () => {
|
|
152
|
+
const logger = stubLogger();
|
|
153
|
+
const events = new FakeWorkerEvents();
|
|
154
|
+
routePgliteWorkerFailures(events, logger as unknown as ILogger);
|
|
155
|
+
events.exit(new Error("gone"));
|
|
156
|
+
expect(logger.error).toHaveBeenCalledWith(
|
|
157
|
+
"PGlite worker exited: @error",
|
|
158
|
+
expect.any(Error),
|
|
159
|
+
);
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
describe("terminateOnPoisoned", () => {
|
|
164
|
+
it("reports the poisoning, then stops the store's worker", () => {
|
|
165
|
+
const calls: string[] = [];
|
|
166
|
+
const options = terminateOnPoisoned(
|
|
167
|
+
{ onPoisoned: () => calls.push("reported"), statementTimeoutMs: 5 },
|
|
168
|
+
{
|
|
169
|
+
terminate: () => {
|
|
170
|
+
calls.push("terminated");
|
|
171
|
+
return Promise.resolve();
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
);
|
|
175
|
+
expect(options.statementTimeoutMs).toBe(5);
|
|
176
|
+
options.onPoisoned?.(new Error("hung"));
|
|
177
|
+
expect(calls).toEqual(["reported", "terminated"]);
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
describe("createPgliteStoreFactory", () => {
|
|
182
|
+
const open: PGliteLike[] = [];
|
|
183
|
+
let dataDir: string | undefined;
|
|
184
|
+
|
|
185
|
+
afterEach(async () => {
|
|
186
|
+
for (const store of open.splice(0)) {
|
|
187
|
+
if (store instanceof ThreadedPGlite) {
|
|
188
|
+
await store.terminate();
|
|
189
|
+
} else if (!store.closed) {
|
|
190
|
+
await store.close();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if (dataDir) await rm(dataDir, { recursive: true, force: true });
|
|
194
|
+
dataDir = undefined;
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
function options(
|
|
198
|
+
overrides: Partial<PgliteStoreOptions>,
|
|
199
|
+
): PgliteStoreOptions & { logger: ReturnType<typeof stubLogger> } {
|
|
200
|
+
const logger = stubLogger();
|
|
201
|
+
return {
|
|
202
|
+
label: "read-storage",
|
|
203
|
+
major: 17,
|
|
204
|
+
parsers: "utc-timestamps",
|
|
205
|
+
inMemory: true,
|
|
206
|
+
threaded: false,
|
|
207
|
+
...overrides,
|
|
208
|
+
logger: logger as unknown as ILogger,
|
|
209
|
+
} as PgliteStoreOptions & { logger: ReturnType<typeof stubLogger> };
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
async function utcTimestamp(store: PGliteLike): Promise<string> {
|
|
213
|
+
const { rows } = await store.query<{ at: Date }>(
|
|
214
|
+
"select '2024-01-02 03:04:05'::timestamp as at",
|
|
215
|
+
);
|
|
216
|
+
return rows[0].at.toISOString();
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
it(
|
|
220
|
+
"opens the store in the main thread when not threaded",
|
|
221
|
+
async () => {
|
|
222
|
+
const opts = options({ threaded: false });
|
|
223
|
+
const store = (await createPgliteStoreFactory(opts))("unused");
|
|
224
|
+
open.push(store);
|
|
225
|
+
expect(store).not.toBeInstanceOf(ThreadedPGlite);
|
|
226
|
+
expect(await utcTimestamp(store)).toBe("2024-01-02T03:04:05.000Z");
|
|
227
|
+
expect(opts.logger.info).toHaveBeenCalledWith(
|
|
228
|
+
"read-storage: PGlite (PG17) in the main thread, in memory [PH_PGLITE_IN_MEMORY=1]",
|
|
229
|
+
);
|
|
230
|
+
},
|
|
231
|
+
BOOT,
|
|
232
|
+
);
|
|
233
|
+
|
|
234
|
+
it(
|
|
235
|
+
"opens the store in a worker thread when threaded",
|
|
236
|
+
async () => {
|
|
237
|
+
const opts = options({ threaded: true });
|
|
238
|
+
const store = (await createPgliteStoreFactory(opts))("unused");
|
|
239
|
+
open.push(store);
|
|
240
|
+
expect(store).toBeInstanceOf(ThreadedPGlite);
|
|
241
|
+
expect(await utcTimestamp(store)).toBe("2024-01-02T03:04:05.000Z");
|
|
242
|
+
expect(opts.logger.info).toHaveBeenCalledWith(
|
|
243
|
+
"read-storage: PGlite (PG17) in a worker thread (memory limit 1024 MB), in memory [PH_PGLITE_IN_MEMORY=1]",
|
|
244
|
+
);
|
|
245
|
+
},
|
|
246
|
+
BOOT,
|
|
247
|
+
);
|
|
248
|
+
|
|
249
|
+
it(
|
|
250
|
+
"takes the fatal shutdown when a store's worker dies",
|
|
251
|
+
async () => {
|
|
252
|
+
const proc = fatalProcess();
|
|
253
|
+
const opts = options({ threaded: true, proc: proc as never });
|
|
254
|
+
const store = (await createPgliteStoreFactory(opts))("unused");
|
|
255
|
+
open.push(store);
|
|
256
|
+
await store.waitReady;
|
|
257
|
+
await (store as ThreadedPGlite).terminate();
|
|
258
|
+
await vi.waitFor(() =>
|
|
259
|
+
expect(proc.kill).toHaveBeenCalledWith(4321, "SIGTERM"),
|
|
260
|
+
);
|
|
261
|
+
},
|
|
262
|
+
BOOT,
|
|
263
|
+
);
|
|
264
|
+
|
|
265
|
+
it(
|
|
266
|
+
"writes a durable store in a worker that the main thread reads back",
|
|
267
|
+
async () => {
|
|
268
|
+
dataDir = await mkdtemp(join(tmpdir(), "sb-pglite-store-"));
|
|
269
|
+
const dir = join(dataDir, "read-storage");
|
|
270
|
+
const threaded = (
|
|
271
|
+
await createPgliteStoreFactory(
|
|
272
|
+
options({ threaded: true, inMemory: false, parsers: "none" }),
|
|
273
|
+
)
|
|
274
|
+
)(dir);
|
|
275
|
+
await threaded.exec("create table kept (v text)");
|
|
276
|
+
await threaded.query("insert into kept values ($1)", ["from-worker"]);
|
|
277
|
+
await threaded.close();
|
|
278
|
+
|
|
279
|
+
const mainThread = (
|
|
280
|
+
await createPgliteStoreFactory(
|
|
281
|
+
options({ threaded: false, inMemory: false, parsers: "none" }),
|
|
282
|
+
)
|
|
283
|
+
)(dir);
|
|
284
|
+
open.push(mainThread);
|
|
285
|
+
const { rows } = await mainThread.query<{ v: string }>(
|
|
286
|
+
"select v from kept",
|
|
287
|
+
);
|
|
288
|
+
expect(rows).toEqual([{ v: "from-worker" }]);
|
|
289
|
+
await mainThread.close();
|
|
290
|
+
},
|
|
291
|
+
BOOT * 2,
|
|
292
|
+
);
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
describe("vacuumFullTimingFromEnv", () => {
|
|
296
|
+
it("reads both timings, and leaves unset or invalid values to the defaults", () => {
|
|
297
|
+
expect(
|
|
298
|
+
vacuumFullTimingFromEnv({
|
|
299
|
+
PH_PGLITE_VACUUM_FULL_QUIET_MS: "0",
|
|
300
|
+
PH_PGLITE_VACUUM_FULL_MAX_DEFER_MS: "600000",
|
|
301
|
+
}),
|
|
302
|
+
).toEqual({ vacuumFullQuietMs: 0, vacuumFullMaxDeferMs: 600_000 });
|
|
303
|
+
expect(vacuumFullTimingFromEnv({})).toEqual({});
|
|
304
|
+
expect(
|
|
305
|
+
vacuumFullTimingFromEnv({
|
|
306
|
+
PH_PGLITE_VACUUM_FULL_QUIET_MS: "soon",
|
|
307
|
+
PH_PGLITE_VACUUM_FULL_MAX_DEFER_MS: "-5",
|
|
308
|
+
}),
|
|
309
|
+
).toEqual({});
|
|
310
|
+
});
|
|
311
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
2
|
+
import { mkdir, mkdtemp, rm } from "node:fs/promises";
|
|
3
|
+
import { tmpdir } from "node:os";
|
|
4
|
+
import { join } from "node:path";
|
|
5
|
+
import { afterEach, describe, expect, it } from "vitest";
|
|
6
|
+
import { initRenown } from "../src/renown.js";
|
|
7
|
+
|
|
8
|
+
describe("initRenown storage", () => {
|
|
9
|
+
const saved = process.env.PH_USER_DATA_DIR;
|
|
10
|
+
let userData: string | undefined;
|
|
11
|
+
|
|
12
|
+
afterEach(async () => {
|
|
13
|
+
if (saved === undefined) delete process.env.PH_USER_DATA_DIR;
|
|
14
|
+
else process.env.PH_USER_DATA_DIR = saved;
|
|
15
|
+
if (userData) await rm(userData, { recursive: true, force: true });
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
it("keeps renown's user storage under PH_USER_DATA_DIR", async () => {
|
|
19
|
+
userData = await mkdtemp(join(tmpdir(), "switchboard-renown-"));
|
|
20
|
+
process.env.PH_USER_DATA_DIR = userData;
|
|
21
|
+
await initRenown({ keypairPath: join(userData, ".ph", ".keypair.json") });
|
|
22
|
+
expect(existsSync(join(userData, ".ph", ".renown.json"))).toBe(true);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it("creates no .ph in cwd when the keypair path is explicit", async () => {
|
|
26
|
+
userData = await mkdtemp(join(tmpdir(), "switchboard-renown-"));
|
|
27
|
+
const cwd = join(userData, "project");
|
|
28
|
+
await mkdir(cwd);
|
|
29
|
+
process.env.PH_USER_DATA_DIR = userData;
|
|
30
|
+
const before = process.cwd();
|
|
31
|
+
process.chdir(cwd);
|
|
32
|
+
try {
|
|
33
|
+
await initRenown({ keypairPath: join(userData, ".ph", ".keypair.json") });
|
|
34
|
+
} finally {
|
|
35
|
+
process.chdir(before);
|
|
36
|
+
}
|
|
37
|
+
expect(existsSync(join(cwd, ".ph"))).toBe(false);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
@@ -11,11 +11,9 @@ import type { IRenown } from "@renown/sdk/node";
|
|
|
11
11
|
import { existsSync } from "node:fs";
|
|
12
12
|
import { pathToFileURL } from "node:url";
|
|
13
13
|
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
14
|
+
import { workerTrustPolicyIssue } from "../src/boot-preconditions.mjs";
|
|
14
15
|
import { applySwitchboardReactorDefaults } from "../src/builder-defaults.mjs";
|
|
15
|
-
import {
|
|
16
|
-
assertWorkerTrustPolicy,
|
|
17
|
-
getRenownTrustPolicyConfig,
|
|
18
|
-
} from "../src/renown.js";
|
|
16
|
+
import { getRenownTrustPolicyConfig } from "../src/renown.js";
|
|
19
17
|
|
|
20
18
|
const WALLET = "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266";
|
|
21
19
|
const CONNECT_KEY = "did:key:zDnaeConnectKey";
|
|
@@ -248,15 +246,15 @@ describe("getRenownTrustPolicyConfig", () => {
|
|
|
248
246
|
});
|
|
249
247
|
});
|
|
250
248
|
|
|
251
|
-
describe("
|
|
249
|
+
describe("workerTrustPolicyIssue", () => {
|
|
252
250
|
it("fails with workers, authEnforcement and a self source", () => {
|
|
253
|
-
expect(
|
|
254
|
-
|
|
251
|
+
expect(
|
|
252
|
+
workerTrustPolicyIssue({
|
|
255
253
|
workers: 2,
|
|
256
254
|
authEnforcement: true,
|
|
257
255
|
renownSource: "self",
|
|
258
256
|
}),
|
|
259
|
-
).
|
|
257
|
+
).toMatch(
|
|
260
258
|
/REACTOR_WORKERS[\s\S]*REACTOR_AUTH_ENFORCEMENT[\s\S]*RENOWN_SOURCE/,
|
|
261
259
|
);
|
|
262
260
|
});
|
|
@@ -266,7 +264,7 @@ describe("assertWorkerTrustPolicy", () => {
|
|
|
266
264
|
{ workers: 2, authEnforcement: false, renownSource: "self" as const },
|
|
267
265
|
{ workers: 2, authEnforcement: true, renownSource: "remote" as const },
|
|
268
266
|
])("passes %o", (config) => {
|
|
269
|
-
expect((
|
|
267
|
+
expect(workerTrustPolicyIssue(config)).toBeUndefined();
|
|
270
268
|
});
|
|
271
269
|
});
|
|
272
270
|
|
package/tsdown.config.ts
CHANGED