xunit.ts 1.2.2 → 1.3.0
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 +9 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -22,6 +22,13 @@ Detailed documentation is available at https://ecoAPM.github.io/xunit.ts
|
|
|
22
22
|
|
|
23
23
|
(other versions may work, but only the latest minor release for each LTS version is actively supported)
|
|
24
24
|
|
|
25
|
+
- A supported TypeScript compiler
|
|
26
|
+
- TypeScript 4
|
|
27
|
+
- Vite 2
|
|
28
|
+
- Rollup 2
|
|
29
|
+
- Parcel 1
|
|
30
|
+
- Webpack 5
|
|
31
|
+
|
|
25
32
|
### Installation
|
|
26
33
|
|
|
27
34
|
`npm install --dev xunit.ts`
|
|
@@ -44,7 +51,7 @@ At a minimum, your `tsconfig.json` will require the following:
|
|
|
44
51
|
}
|
|
45
52
|
```
|
|
46
53
|
|
|
47
|
-
If you're using
|
|
54
|
+
If you're using a bundler, you'll need to declare `xunit.ts` as an `external` in your build config file for the tests to be detected. See the [officially-supported configurations](https://github.com/ecoAPM/xunit.ts/tree/main/compiler-tests) in the `compiler-tests` directory of the source code for detailed examples.
|
|
48
55
|
|
|
49
56
|
### Create your first test
|
|
50
57
|
|
|
@@ -63,7 +70,7 @@ export default class MyTestSuite extends TestSuite {
|
|
|
63
70
|
|
|
64
71
|
### Run your tests
|
|
65
72
|
|
|
66
|
-
You'll need to compile your TypeScript tests into JavaScript using `tsc` or
|
|
73
|
+
You'll first need to compile your TypeScript tests into JavaScript using `tsc` or the supported bundler of your choice.
|
|
67
74
|
|
|
68
75
|
Then run:
|
|
69
76
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xunit.ts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "A unit testing framework for TypeScript, following standard xUnit patterns",
|
|
5
5
|
"main": "dist/xunit.js",
|
|
6
6
|
"author": "ecoAPM LLC",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"@types/command-line-args": "5.2.0",
|
|
19
19
|
"@types/command-line-usage": "5.0.2",
|
|
20
20
|
"@types/lodash.isequal": "4.5.6",
|
|
21
|
-
"@types/node": "18.0.
|
|
21
|
+
"@types/node": "18.0.6",
|
|
22
22
|
"@types/xml": "1.0.8",
|
|
23
|
-
"@typescript-eslint/eslint-plugin": "5.30.
|
|
24
|
-
"@typescript-eslint/parser": "5.30.
|
|
25
|
-
"eslint": "8.
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "5.30.7",
|
|
24
|
+
"@typescript-eslint/parser": "5.30.7",
|
|
25
|
+
"eslint": "8.20.0",
|
|
26
26
|
"ts-mockito": "2.6.1",
|
|
27
27
|
"typescript": "4.7.4"
|
|
28
28
|
},
|