@activate-core/test-forge 0.8.0 → 0.8.1
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/index.js +1 -15
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* testforge generate --force Regenerate everything, ignoring the cache.
|
|
16
16
|
*/
|
|
17
17
|
import { VERSION } from '../core/index.js';
|
|
18
|
-
import { runGenerate
|
|
18
|
+
import { runGenerate } from '../core/run-generate.js';
|
|
19
19
|
import { runDiscover } from '../core/discover.js';
|
|
20
20
|
import { runMap } from '../core/map.js';
|
|
21
21
|
import { runInit } from '../core/init.js';
|
|
@@ -75,7 +75,6 @@ function printUsage() {
|
|
|
75
75
|
console.log(' testforge init Inspect project and write config');
|
|
76
76
|
console.log(' testforge update Re-check and update only what changed');
|
|
77
77
|
console.log(' testforge env Write .env.testing.example from docs');
|
|
78
|
-
console.log(' testforge harness [--area <a>] (Re)generate the shared testkit only');
|
|
79
78
|
}
|
|
80
79
|
async function main() {
|
|
81
80
|
if (command === 'update') {
|
|
@@ -108,19 +107,6 @@ async function main() {
|
|
|
108
107
|
else if (command === 'env') {
|
|
109
108
|
runEnvTemplate('docs', '.env.testing.example', '.', generatedScanDirs());
|
|
110
109
|
}
|
|
111
|
-
else if (command === 'harness') {
|
|
112
|
-
console.log('(Re)generating the shared test harness (testkit)...\n');
|
|
113
|
-
const written = await runHarness(flagValue('--area'));
|
|
114
|
-
if (written.length === 0) {
|
|
115
|
-
console.log('No harness generated. Check the --area or run `generate` first.');
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
for (const p of written)
|
|
119
|
-
console.log(` testkit: ${p}`);
|
|
120
|
-
console.log('\nDone. Existing tests import this testkit unchanged; its setup()' +
|
|
121
|
-
' seeds + mints/populates the auth tokens they read.');
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
110
|
else if (command === 'generate') {
|
|
125
111
|
const useAI = !useBasic;
|
|
126
112
|
console.log(useAI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activate-core/test-forge",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "AI-powered QA automation. Scans a project, drafts journey docs, and generates seeded Jest/Playwright tests. Works in any project, with any AI CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|