@irtio/testing 0.7.0 → 0.9.0

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.
@@ -247,7 +247,7 @@ var TestHarness = class {
247
247
  };
248
248
  this.coreRef = new RoomCore(this.definition, this.host, {
249
249
  roomId: this.roomId,
250
- seed: options.seed ?? 1,
250
+ ...options.seed !== void 0 ? { seed: options.seed } : {},
251
251
  ...options.profile === true ? { profile: true } : {}
252
252
  });
253
253
  this.host.core = this.coreRef;
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { Room, ClientState, RelayRoom, Scheduler } from '@irtio/client';
4
4
  import { ProfileSnapshot } from '@irtio/protocol';
5
5
  import { RoomCore } from '@irtio/runtime';
6
6
  import { TraceEntry, HarnessHost, VisibilityLeak, FakeClock } from '@irtio/runtime/test';
7
- export { TraceEntry, VisibilityLeak, initMatter, initPhysics } from '@irtio/runtime/test';
7
+ export { TraceEntry, VisibilityLeak, initMatter, initPhysics, initRapier2d } from '@irtio/runtime/test';
8
8
  export { M as MatcherResult, P as PredictionBounds, T as TRACE_TAIL, m as matchers, t as toHaveConverged, a as toHaveNoVisibilityLeaks, b as toHaveRejected, c as toStayUnderBandwidth, d as toStayWithinPrediction } from './assertions-Cj1Sejhj.js';
9
9
 
10
10
  /**
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  toHaveRejected,
12
12
  toStayUnderBandwidth,
13
13
  toStayWithinPrediction
14
- } from "./chunk-TPT2EBEZ.js";
14
+ } from "./chunk-YMZ3FZYM.js";
15
15
 
16
16
  // src/relay-harness.ts
17
17
  import { joinRelay } from "@irtio/client";
@@ -450,6 +450,7 @@ var TestRelayHarness = class {
450
450
  // src/index.ts
451
451
  import { initPhysics } from "@irtio/runtime/test";
452
452
  import { initMatter } from "@irtio/runtime/test";
453
+ import { initRapier2d } from "@irtio/runtime/test";
453
454
  async function testRoom(definition, options = {}) {
454
455
  return new TestHarness(definition, options);
455
456
  }
@@ -464,6 +465,7 @@ export {
464
465
  divergence,
465
466
  initMatter,
466
467
  initPhysics,
468
+ initRapier2d,
467
469
  matchers,
468
470
  materialize,
469
471
  testRelay,
package/dist/matchers.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  toHaveRejected,
6
6
  toStayUnderBandwidth,
7
7
  toStayWithinPrediction
8
- } from "./chunk-TPT2EBEZ.js";
8
+ } from "./chunk-YMZ3FZYM.js";
9
9
 
10
10
  // src/matchers.ts
11
11
  import { expect } from "vitest";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@irtio/testing",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "irtio's blessed test API: testRoom() in-process rooms with real client semantics, plus Vitest matchers",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -23,11 +23,11 @@
23
23
  "dist"
24
24
  ],
25
25
  "dependencies": {
26
- "@irtio/client": "0.7.0",
27
- "@irtio/protocol": "0.7.0",
28
- "@irtio/runtime": "0.7.0",
29
- "@irtio/schema": "0.7.0",
30
- "@irtio/server": "0.7.0"
26
+ "@irtio/client": "0.9.0",
27
+ "@irtio/protocol": "0.9.0",
28
+ "@irtio/schema": "0.9.0",
29
+ "@irtio/server": "0.9.0",
30
+ "@irtio/runtime": "0.9.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "vitest": ">=3"