@isentinel/jest-roblox 0.3.5 → 0.3.7

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/dist/cli.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as CliOptions } from "./schema-BCTnsaiC.mjs";
1
+ import { t as CliOptions } from "./schema-CCF2E3k_.mjs";
2
2
 
3
3
  //#region src/cli.d.ts
4
4
  declare function parseArgs(args: Array<string>): CliOptions;
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as loadConfig, D as outputMultiResult, H as formatBanner, O as outputSingleResult, P as parseGameOutput, Q as mergeCliWithConfig, Y as LuauScriptError, dt as version, f as formatMissingScopes, lt as isValidBackend, n as runJestRoblox, ot as VALID_BACKENDS, p as walkErrorChain, ut as ConfigError } from "./run-DbEgZMyU.mjs";
1
+ import { $ as loadConfig, D as outputMultiResult, H as formatBanner, O as outputSingleResult, P as parseGameOutput, Q as mergeCliWithConfig, Y as LuauScriptError, dt as version, f as formatMissingScopes, lt as isValidBackend, n as runJestRoblox, ot as VALID_BACKENDS, p as walkErrorChain, ut as ConfigError } from "./run-Bh8G33J1.mjs";
2
2
  import { OpenCloudError } from "@bedrock-rbx/ocale";
3
3
  import process from "node:process";
4
4
  import { parseArgs as parseArgs$1 } from "node:util";
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { _ as SnapshotFormatOptions, a as DisplayName, b as defineProject, c as GlobalTestConfig, d as ProjectEntry, f as ProjectTestConfig, g as SharedTestConfig, h as SHARED_TEST_KEYS, i as DEFAULT_CONFIG, l as InlineProjectConfig, m as ResolvedConfig, n as Config, o as FormatterEntry, p as ROOT_CLI_KEYS, r as ConfigInput, s as GLOBAL_TEST_KEYS, t as CliOptions, u as JEST_ARGV_EXCLUDED_KEYS, v as WorkspaceConfig, x as TypecheckConfig, y as defineConfig } from "./schema-BCTnsaiC.mjs";
1
+ import { _ as SnapshotFormatOptions, a as DisplayName, b as defineProject, c as GlobalTestConfig, d as ProjectEntry, f as ProjectTestConfig, g as SharedTestConfig, h as SHARED_TEST_KEYS, i as DEFAULT_CONFIG, l as InlineProjectConfig, m as ResolvedConfig, n as Config, o as FormatterEntry, p as ROOT_CLI_KEYS, r as ConfigInput, s as GLOBAL_TEST_KEYS, t as CliOptions, u as JEST_ARGV_EXCLUDED_KEYS, v as WorkspaceConfig, x as TypecheckConfig, y as defineConfig } from "./schema-CCF2E3k_.mjs";
2
2
  import { type } from "arktype";
3
- import { WebSocket, WebSocketServer } from "ws";
4
3
  import { StorageClient } from "@bedrock-rbx/ocale/storage";
4
+ import { WebSocket, WebSocketServer } from "ws";
5
5
 
6
6
  //#region src/coverage-pipeline/build-manifest.d.ts
7
7
  /**
@@ -366,8 +366,12 @@ interface UploadPlaceOptions {
366
366
  placeFilePath: string;
367
367
  /**
368
368
  * Publish as the live version instead of a Saved draft. Open Cloud Luau
369
- * Execution boots the live Published version on fresh and recycled servers,
370
- * so a Saved-only upload can be ignored mid-run when a warm server recycles.
369
+ * Execution boots whatever version is currently live on fresh and recycled
370
+ * servers, so without version pinning a concurrent upload can be picked up
371
+ * mid-run when a warm server recycles. Pinning execution to the uploaded
372
+ * version (see {@link ExecuteScriptOptions.placeVersion}) removes that
373
+ * hazard, so a Saved upload plus a pinned run isolates concurrent runs
374
+ * without disturbing the live slot — making this flag moot for that path.
371
375
  */
372
376
  publish?: boolean;
373
377
  }
@@ -376,6 +380,14 @@ interface UploadPlaceResult {
376
380
  versionNumber: number;
377
381
  }
378
382
  interface ExecuteScriptOptions {
383
+ /**
384
+ * Pin execution to a specific place version (the `versionNumber` returned
385
+ * by {@link RemoteRunner.uploadPlace}). Open Cloud Luau Execution otherwise
386
+ * boots whatever version is currently live, so a concurrent upload to the
387
+ * same place clobbers an in-flight run; pinning isolates each run to the
388
+ * version it uploaded. Omitted ⇒ run against the live (head) version.
389
+ */
390
+ placeVersion?: number;
379
391
  script: string;
380
392
  timeout: number;
381
393
  }
@@ -407,7 +419,6 @@ declare class OpenCloudBackend implements Backend {
407
419
  runTests(options: BackendOptions): Promise<BackendResult>;
408
420
  private runBucket;
409
421
  private runStaticBuckets;
410
- private runStealingTask;
411
422
  private runWorkStealing;
412
423
  }
413
424
  declare function createOpenCloudBackend(credentials: OpenCloudCredentials): OpenCloudBackend;
@@ -1105,10 +1116,16 @@ interface TypecheckOptions {
1105
1116
  ignoreSourceErrors?: boolean;
1106
1117
  rootDir: string;
1107
1118
  /**
1108
- * Milliseconds the tsgo spawn may run before it is killed and the pass
1109
- * throws. Defaults to {@link DEFAULT_SPAWN_TIMEOUT}.
1119
+ * Milliseconds to wait for the tsgo process to launch before the pass
1120
+ * throws. The timer is cleared the instant tsgo reports it spawned; it does
1121
+ * not bound the compile. Defaults to {@link DEFAULT_SPAWN_TIMEOUT}.
1110
1122
  */
1111
1123
  spawnTimeout?: number;
1124
+ /**
1125
+ * Milliseconds the tsgo *compile* may run before it is killed and the pass
1126
+ * throws. The run-level `timeout`. Defaults to {@link DEFAULT_RUN_TIMEOUT}.
1127
+ */
1128
+ timeout?: number;
1112
1129
  tsconfig?: string;
1113
1130
  }
1114
1131
  declare function runTypecheck(options: TypecheckOptions): Promise<JestResult>;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as loadConfig, A as formatJobSummary, B as formatResult, C as BUILD_MANIFEST_VERSION, E as readBuildManifest, F as writeGameOutput, G as manifestSchema, I as createTimingCollector, J as applyAttribution, K as readManifest, L as formatJson, M as runProjects, N as formatGameOutputNotice, P as parseGameOutput, Q as mergeCliWithConfig, R as writeJsonFile, S as buildPlace, T as emitBuildManifest, U as hashFile, V as formatTestSummary, W as MANIFEST_VERSION, X as extractJsonFromOutput, Z as parseJestOutput, _ as COVERAGE_MANIFEST_PATH, a as loadRojoTree, at as SHARED_TEST_KEYS, b as visitExpression, c as StudioBackend, ct as defineProject, d as createOpenCloudBackend, et as resolveConfig, g as COVERAGE_BUILD_MANIFEST_PATH, h as generateTestScript, i as collectStubMounts, it as ROOT_CLI_KEYS, j as formatExecuteOutput, k as formatAnnotations, l as createStudioBackend, m as buildJestArgv, n as runJestRoblox, nt as GLOBAL_TEST_KEYS, o as runTypecheck, q as writeManifest, r as runSingleOrMulti, rt as JEST_ARGV_EXCLUDED_KEYS, s as resolveAllProjects, st as defineConfig, t as getRawProjects, tt as DEFAULT_CONFIG, u as OpenCloudBackend, v as findRojoProject, w as buildManifestSchema, x as visitStatement, y as visitBlock, z as formatFailure } from "./run-DbEgZMyU.mjs";
1
+ import { $ as loadConfig, A as formatJobSummary, B as formatResult, C as BUILD_MANIFEST_VERSION, E as readBuildManifest, F as writeGameOutput, G as manifestSchema, I as createTimingCollector, J as applyAttribution, K as readManifest, L as formatJson, M as runProjects, N as formatGameOutputNotice, P as parseGameOutput, Q as mergeCliWithConfig, R as writeJsonFile, S as buildPlace, T as emitBuildManifest, U as hashFile, V as formatTestSummary, W as MANIFEST_VERSION, X as extractJsonFromOutput, Z as parseJestOutput, _ as COVERAGE_MANIFEST_PATH, a as loadRojoTree, at as SHARED_TEST_KEYS, b as visitExpression, c as StudioBackend, ct as defineProject, d as createOpenCloudBackend, et as resolveConfig, g as COVERAGE_BUILD_MANIFEST_PATH, h as generateTestScript, i as collectStubMounts, it as ROOT_CLI_KEYS, j as formatExecuteOutput, k as formatAnnotations, l as createStudioBackend, m as buildJestArgv, n as runJestRoblox, nt as GLOBAL_TEST_KEYS, o as runTypecheck, q as writeManifest, r as runSingleOrMulti, rt as JEST_ARGV_EXCLUDED_KEYS, s as resolveAllProjects, st as defineConfig, t as getRawProjects, tt as DEFAULT_CONFIG, u as OpenCloudBackend, v as findRojoProject, w as buildManifestSchema, x as visitStatement, y as visitBlock, z as formatFailure } from "./run-Bh8G33J1.mjs";
2
2
  import * as path$1 from "node:path";
3
3
  //#region src/artifacts/prepare-artifacts.ts
4
4
  const COVERAGE_DIR = path$1.dirname(COVERAGE_BUILD_MANIFEST_PATH);