@jskit-ai/jskit-catalog 0.2.117 → 0.2.118
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/catalog/packages.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"release": {
|
|
7
7
|
"packages": {
|
|
8
8
|
"@jskit-ai/agent": "0.1.3",
|
|
9
|
-
"@jskit-ai/agent-docs": "0.1.
|
|
9
|
+
"@jskit-ai/agent-docs": "0.1.366",
|
|
10
10
|
"@jskit-ai/agent-runtime": "0.1.49",
|
|
11
11
|
"@jskit-ai/architecture-inspector": "0.1.34",
|
|
12
12
|
"@jskit-ai/assistant-core": "0.2.94",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@jskit-ai/database-runtime-postgres": "0.1.289",
|
|
34
34
|
"@jskit-ai/http-runtime": "0.2.36",
|
|
35
35
|
"@jskit-ai/http-web": "0.2.65",
|
|
36
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
36
|
+
"@jskit-ai/jskit-catalog": "0.2.118",
|
|
37
37
|
"@jskit-ai/kernel": "0.2.35",
|
|
38
38
|
"@jskit-ai/material-web": "0.1.15",
|
|
39
39
|
"@jskit-ai/mobile-capacitor": "0.2.56",
|
package/package.json
CHANGED
package/scripts/test-command.mjs
CHANGED
|
@@ -39,6 +39,8 @@ const TEST_LIKE_PATTERN = "**/tests/**/*[._-]{integration,spec,specs,tests}.{js,
|
|
|
39
39
|
const OTHER_RUNNER_FOLDER = /(?:^|\/)(?:e2e|browser)\//u;
|
|
40
40
|
const OTHER_RUNNER_IMPORT = /\b(?:from|import|require)\s*\(?\s*["'](?:vitest|@playwright\/test)["']/u;
|
|
41
41
|
const MARKER = /^\s*\/\/\s*jskit-test:(.*)$/u;
|
|
42
|
+
// jskit check's marker for the wait on the line after it (test-sources.mjs), wherever that is: not a file marker.
|
|
43
|
+
const CHECK_MARKER = /^\s*fixed-wait\b/u;
|
|
42
44
|
const MARKED = /^\s*(alone|network)\s+-\s+(\S.*)$/u;
|
|
43
45
|
const MARKER_FORMS = Object.freeze({
|
|
44
46
|
alone: "`// jskit-test: alone - <why this file cannot run beside others>`",
|
|
@@ -74,7 +76,7 @@ function missedTestFiles(defaultFiles, cwd) {
|
|
|
74
76
|
/**
|
|
75
77
|
* The files of a run that must run alone, or reach an outside service, from their first line. A marker that is
|
|
76
78
|
* malformed or not on the first line (after a shebang) is an error, so a file never runs in parallel, or unguarded,
|
|
77
|
-
* because its marker was missed.
|
|
79
|
+
* because its marker was missed. jskit check's fixed-wait marker is its own, on any line, and left to it.
|
|
78
80
|
* @returns {{ alone: Array<{ file: string, reason: string }>, network: Array<{ file: string, reason: string }>, problems: string[] }}
|
|
79
81
|
*/
|
|
80
82
|
function readMarkedFiles(files, cwd) {
|
|
@@ -85,7 +87,7 @@ function readMarkedFiles(files, cwd) {
|
|
|
85
87
|
const top = lines[0]?.startsWith("#!") ? 1 : 0;
|
|
86
88
|
lines.forEach((line, index) => {
|
|
87
89
|
const marker = MARKER.exec(line);
|
|
88
|
-
if (!marker) return;
|
|
90
|
+
if (!marker || CHECK_MARKER.test(marker[1])) return;
|
|
89
91
|
const [, kind, reason] = MARKED.exec(marker[1]) || [];
|
|
90
92
|
const meant = /^\s*network\b/u.test(marker[1]) ? MARKER_FORMS.network : MARKER_FORMS.alone;
|
|
91
93
|
if (index !== top) problems.push(`${file}:${index + 1}: a jskit-test marker belongs on the file's first line.`);
|