@augment-vir/test 30.8.3 → 31.0.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
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
A universal testing suite that works with Mocha style test runners _and_ Node.js's built-in test runner with the following main exports:
|
|
4
4
|
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
5
|
+
- [`describe`](https://electrovir.github.io/augment-vir/functions/describe.html): the normal describe test suite function, automatically imported based on the current environment.
|
|
6
|
+
- [`it`](https://electrovir.github.io/augment-vir/functions/it.html): the normal it test function, automatically imported based on the current environment.
|
|
7
|
+
- [`itCases`](https://electrovir.github.io/augment-vir/functions/itCases.html): a succinct way to test lots of inputs and outputs to a single function.
|
|
8
|
+
- [`testWeb`](https://electrovir.github.io/augment-vir/variables/testWeb.html): a API of web-testing utilities, only available in browser environments.
|
|
9
9
|
|
|
10
10
|
See the docs under `Test`, or `Package: @augment-vir/test` here: https://electrovir.github.io/augment-vir
|
|
@@ -54,7 +54,7 @@ export async function assertSnapshot(testContext, data) {
|
|
|
54
54
|
throw new SnapshotFileMissingError(testName);
|
|
55
55
|
}
|
|
56
56
|
else if (!result.matches) {
|
|
57
|
-
throw new Error(`Snapshot mismatch at '${testName}':\n\nActual: ${serializedData}\n\nExpected: ${result.
|
|
57
|
+
throw new Error(`Snapshot mismatch at '${testName}':\n\nActual: ${serializedData}\n\nExpected: ${result.savedSnapshot}\n`);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@augment-vir/test",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.0",
|
|
4
4
|
"description": "A universal testing suite that works with Mocha style test runners _and_ Node.js's built-in test runner.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"test",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"test:web": "virmator test --no-deps web 'src/test-web/**/*.test.ts' 'src/augments/universal-testing-suite/**/*.test.ts'"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@augment-vir/assert": "^
|
|
46
|
-
"@augment-vir/common": "^
|
|
45
|
+
"@augment-vir/assert": "^31.0.0",
|
|
46
|
+
"@augment-vir/common": "^31.0.0",
|
|
47
47
|
"@open-wc/testing-helpers": "^3.0.1",
|
|
48
|
-
"@virmator/test": "^13.
|
|
49
|
-
"type-fest": "^4.
|
|
48
|
+
"@virmator/test": "^13.10.3",
|
|
49
|
+
"type-fest": "^4.29.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@types/node": "^22.
|
|
52
|
+
"@types/node": "^22.10.0",
|
|
53
53
|
"@web/dev-server-esbuild": "^1.0.3",
|
|
54
54
|
"@web/test-runner": "^0.19.0",
|
|
55
55
|
"@web/test-runner-commands": "^0.9.0",
|