@elmoorx/auto-test 2.0.0-alpha.25 → 3.0.0-alpha.2
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/README.md +3 -3
- package/package.json +5 -1
- package/src/index.ts +5 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @elmoorx/auto-test
|
|
2
2
|
|
|
3
3
|
> AI-powered test generation: unit, integration, E2E from code analysis
|
|
4
4
|
|
|
@@ -7,13 +7,13 @@ Part of the [Wafra Framework](https://github.com/wafra/framework) — Build fast
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
npm install @
|
|
10
|
+
npm install @elmoorx/auto-test
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Quick Start
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import { /* exports */ } from '@
|
|
16
|
+
import { /* exports */ } from '@elmoorx/auto-test';
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmoorx/auto-test",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"description": "AI-powered test generation: unit, integration, E2E from code analysis",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -30,5 +30,9 @@
|
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"exports": {
|
|
32
32
|
".": "./src/index.ts"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public",
|
|
36
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
37
|
}
|
|
34
38
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
2
|
+
* @elmoorx/auto-test — AI-Powered Test Generation
|
|
3
3
|
* ============================================
|
|
4
4
|
* Automatically generates test suites for your Wafra components.
|
|
5
5
|
*
|
|
6
|
-
* import { generateTests } from "@
|
|
6
|
+
* import { generateTests } from "@elmoorx/auto-test";
|
|
7
7
|
*
|
|
8
8
|
* const tests = generateTests(MyComponent, {
|
|
9
9
|
* props: { initialCount: 0 },
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* - 80%+ coverage automatically
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import { h, $state, renderToString, type WafraNode } from "@
|
|
25
|
+
import { h, $state, renderToString, type WafraNode } from "@elmoorx/runtime";
|
|
26
26
|
|
|
27
27
|
// ============ TEST GENERATION ============
|
|
28
28
|
|
|
@@ -468,8 +468,8 @@ export function generateTestFile(
|
|
|
468
468
|
const tests = generateTests(component, options);
|
|
469
469
|
const name = options.name || "Component";
|
|
470
470
|
|
|
471
|
-
const imports = `import { describe, test, expect } from "@
|
|
472
|
-
import { h, renderToString } from "@
|
|
471
|
+
const imports = `import { describe, test, expect } from "@elmoorx/testing";
|
|
472
|
+
import { h, renderToString } from "@elmoorx/runtime";
|
|
473
473
|
import ${name} from "./${name}";
|
|
474
474
|
|
|
475
475
|
describe("${name}", () => {`;
|