@tng-sh/js 0.0.2 → 0.0.3
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
CHANGED
|
@@ -14,21 +14,31 @@ npm install @tng-sh/js --save-dev
|
|
|
14
14
|
Run the init command to create a `tng.config.js` configuration file in your project:
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npx tng init
|
|
17
|
+
npx -p @tng-sh/js tng init
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
### 2. Generate Tests
|
|
21
21
|
Generate a test for a specific function in a file:
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npx tng -f path/to/file.js -m functionName
|
|
24
|
+
npx -p @tng-sh/js tng -f path/to/file.js -m functionName -t react_component
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
**Supported Types (`-t`):**
|
|
28
|
+
- `react_component`
|
|
29
|
+
- `express_handler`
|
|
30
|
+
- `graphql_resolver`
|
|
31
|
+
- `nest_js` (Service/Controller)
|
|
32
|
+
- `orm_model`
|
|
33
|
+
- `background_job`
|
|
34
|
+
- `mailer`
|
|
35
|
+
- `utility`
|
|
36
|
+
|
|
27
37
|
### 3. Interactive Mode
|
|
28
38
|
Launch the interactive UI to explore and generate tests visually:
|
|
29
39
|
|
|
30
40
|
```bash
|
|
31
|
-
npx tng i
|
|
41
|
+
npx -p @tng-sh/js tng i
|
|
32
42
|
```
|
|
33
43
|
|
|
34
44
|
## Features
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|