kizu 3.7.0 → 3.7.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 +13 -3
- package/dist/cli.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,16 @@ Designed to help you write simple, readable, and maintainable tests.
|
|
|
42
42
|
|
|
43
43
|
For more examples, see the [examples](examples) and [src](src) folders.
|
|
44
44
|
|
|
45
|
+
```bash
|
|
46
|
+
# Run all tests in the src directory and its subdirectories, and only show failures in the output.
|
|
47
|
+
npx kizu 'src/**/*.test.ts' --fail-only
|
|
48
|
+
# Run a specific test file
|
|
49
|
+
npx kizu 'src/example.test.ts'
|
|
50
|
+
```
|
|
51
|
+
|
|
45
52
|
```typescript
|
|
53
|
+
// example.test.ts
|
|
54
|
+
|
|
46
55
|
import {test} from 'kizu';
|
|
47
56
|
|
|
48
57
|
// Basic test
|
|
@@ -79,10 +88,11 @@ test('fetchData()', async (assert) => {
|
|
|
79
88
|
|
|
80
89
|
## Table of Contents
|
|
81
90
|
|
|
82
|
-
- [
|
|
83
|
-
- [
|
|
84
|
-
- [API](docs/api.md)
|
|
91
|
+
- [Quick Start](docs/quickStart.md)
|
|
92
|
+
- [CLI](docs/cli.md)
|
|
93
|
+
- [Test API](docs/api.md)
|
|
85
94
|
- [Visual Diff Tool](docs/visualDiff.md)
|
|
95
|
+
- [Example Tests](examples)
|
|
86
96
|
- [Best Practices](docs/bestPractices.md)
|
|
87
97
|
- [Inspiration, Philosophy & Attribution](docs/inspiration.md)
|
|
88
98
|
- [FAQ](docs/faq.md)
|
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ const packageJson = require('../package.json');
|
|
|
7
7
|
const program = new commander_1.Command();
|
|
8
8
|
program
|
|
9
9
|
.name('kizu')
|
|
10
|
-
.version(packageJson.version, '-v
|
|
10
|
+
.version(packageJson.version, '--version, -v')
|
|
11
11
|
.description('⚫️ kizu\n\nAn easy-to-use, fast, and defensive Typescript/Javascript test runner designed to help you to write simple, readable, and maintainable tests.')
|
|
12
12
|
.option('--fail-only, -f', 'Only show failures in the output.', false)
|
|
13
13
|
.argument('<glob>', 'Glob pattern to match files to run tests on.')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kizu",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.2",
|
|
4
4
|
"description": "An easy-to-use, fast, and defensive Typescript/Javascript test runner designed to help you to write simple, readable, and maintainable tests.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|