@solidrt/test 0.0.65 → 0.0.67
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/AGENTS.md +1 -1
- package/package.json +3 -3
- package/src/index.ts +2 -2
package/AGENTS.md
CHANGED
|
@@ -6,7 +6,7 @@ test, `expect` asserts. A devDependency of every app and a peer of
|
|
|
6
6
|
layer, when to `settle`, how to read a failure) is @solidrt/cli
|
|
7
7
|
agents/testing.md.
|
|
8
8
|
|
|
9
|
-
- A test file is `tests/<name>.test.tsx`, run with `bun run
|
|
9
|
+
- A test file is `tests/<name>.test.tsx`, run with `bun run sol test`. It
|
|
10
10
|
imports `test` and `expect` from `@solidrt/test`; every test gets
|
|
11
11
|
the app under test and an engine of its own:
|
|
12
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidrt/test",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.67",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"funding": "https://github.com/sponsors/wellawaretech",
|
|
6
6
|
"author": "Antoine van Wel",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"AGENTS.md"
|
|
15
15
|
],
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@solidrt/flux-types": "0.0.
|
|
17
|
+
"@solidrt/flux-types": "0.0.67"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@solidrt/core": "0.0.
|
|
20
|
+
"@solidrt/core": "0.0.67"
|
|
21
21
|
}
|
|
22
22
|
}
|
package/src/index.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { test as register, expect } from "flux:test"
|
|
18
18
|
import * as gui from "flux:test/gui"
|
|
19
|
-
import { capture, debug, frame as stepFrame, frameRate, inputPlan, inputStep, link, setFrameRate, settle, time, windowReady } from "
|
|
19
|
+
import { capture, debug, frame as stepFrame, frameRate, inputPlan, inputStep, link, setFrameRate, settle, time, windowReady } from "sol:test"
|
|
20
20
|
import { createElement, insert, render } from "@solidrt/core"
|
|
21
21
|
|
|
22
22
|
export { expect }
|
|
@@ -189,7 +189,7 @@ export interface TestApp {
|
|
|
189
189
|
link(link: string): Promise<void>
|
|
190
190
|
/**
|
|
191
191
|
* Calls a debug command the app registered (`registerDebug` of
|
|
192
|
-
* `
|
|
192
|
+
* `sol:dev`), runs a frame, and returns what the command returned. The
|
|
193
193
|
* way to put a loaded app into a state its UI reaches slowly or not at
|
|
194
194
|
* all: the same commands an agent calls over MCP. Throws on an unknown
|
|
195
195
|
* name, listing the registered ones.
|