@cosmicdrift/kumiko-testing 0.362.0 → 0.364.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.
- package/package.json +5 -5
- package/src/bunfig.ts +7 -4
- package/src/preload/dom.ts +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-testing",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.364.0",
|
|
4
4
|
"description": "Test template for Kumiko apps: per-flow seedTenant, app test stack, canonical test preloads, bunfig generator and integration runner.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"kumiko-testing": "./bin/kumiko-testing.ts"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
83
|
-
"@cosmicdrift/kumiko-dev-server": "0.
|
|
84
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
85
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
82
|
+
"@cosmicdrift/kumiko-bundled-features": "0.364.0",
|
|
83
|
+
"@cosmicdrift/kumiko-dev-server": "0.364.0",
|
|
84
|
+
"@cosmicdrift/kumiko-framework": "0.364.0",
|
|
85
|
+
"@cosmicdrift/kumiko-types": "0.364.0",
|
|
86
86
|
"zod": "^4.4.3"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
package/src/bunfig.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isPlainObject } from "@cosmicdrift/kumiko-types/type-guards";
|
|
1
2
|
import { E2E_TIMEOUT_MS } from "./e2e/timeouts";
|
|
2
3
|
|
|
3
4
|
export const TEST_TIMEOUT_MS = {
|
|
@@ -16,7 +17,8 @@ export const BUNFIG_FILES = {
|
|
|
16
17
|
dom: "bunfig.dom.toml",
|
|
17
18
|
} as const;
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
const BUNFIG_VARIANTS = ["unit", "integration", "real"] as const;
|
|
21
|
+
export type BunfigVariant = (typeof BUNFIG_VARIANTS)[number];
|
|
20
22
|
|
|
21
23
|
export type BunfigOptions = {
|
|
22
24
|
readonly dom?: boolean;
|
|
@@ -160,7 +162,7 @@ const SUPERSEDED_PRELOADS: ReadonlyMap<string, string> = new Map([
|
|
|
160
162
|
// skip the whole suite the variant exists to run.
|
|
161
163
|
const TEMPLATE_OWNED_IGNORE_PATTERNS = new Set<string>([
|
|
162
164
|
...COVERAGE_IGNORED,
|
|
163
|
-
...
|
|
165
|
+
...BUNFIG_VARIANTS.flatMap((variant) => [
|
|
164
166
|
...ignoredPaths(variant, false),
|
|
165
167
|
...ignoredPaths(variant, true),
|
|
166
168
|
]),
|
|
@@ -179,8 +181,9 @@ function isKeepableExtra(
|
|
|
179
181
|
}
|
|
180
182
|
|
|
181
183
|
function parseTestSection(content: string): Readonly<Record<string, unknown>> {
|
|
182
|
-
const parsed = Bun.TOML.parse(content)
|
|
183
|
-
|
|
184
|
+
const parsed = Bun.TOML.parse(content);
|
|
185
|
+
const test = isPlainObject(parsed) ? parsed["test"] : undefined;
|
|
186
|
+
return isPlainObject(test) ? test : {};
|
|
184
187
|
}
|
|
185
188
|
|
|
186
189
|
function arrayField(
|
package/src/preload/dom.ts
CHANGED
|
@@ -130,9 +130,8 @@ afterEach(() => {
|
|
|
130
130
|
|
|
131
131
|
// (d) Radix-injected style tags
|
|
132
132
|
for (const el of doc.head.querySelectorAll("style")) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
style.remove();
|
|
133
|
+
if (el.id?.startsWith("radix-")) {
|
|
134
|
+
el.remove();
|
|
136
135
|
}
|
|
137
136
|
}
|
|
138
137
|
|