Update dependency vitest to v1 #1285
Annotations
4 errors
tests/index.test.ts > sum:
tests/index.test.ts#L56
Error: Snapshot `sum 1` mismatched
- Expected
+ Received
"[
{
- \"testName\": \"sum(1, 2) should be 3\",
- \"type\": \"done\",
- \"result\": {
- \"passed\": [
+ "testName": "sum(1, 2) should be 3",
+ "type": "done",
+ "result": {
+ "passed": [
{
- \"received\": 3,
- \"expected\": 3,
- \"pass\": true,
- \"matcherName\": \"toBe\"
+ "received": 3,
+ "expected": 3,
+ "pass": true,
+ "matcherName": "toBe"
},
{
- \"received\": 3,
- \"expected\": 4,
- \"pass\": true,
- \"matcherName\": \"not.toBe\"
+ "received": 3,
+ "expected": 4,
+ "pass": true,
+ "matcherName": "not.toBe"
}
],
- \"failed\": []
+ "failed": []
}
},
{
- \"testName\": \"toBe, toBeCloseTo, and each not version\",
- \"type\": \"done\",
- \"result\": {
- \"passed\": [
+ "testName": "toBe, toBeCloseTo, and each not version",
+ "type": "done",
+ "result": {
+ "passed": [
{
- \"received\": 1,
- \"expected\": 1,
- \"pass\": true,
- \"matcherName\": \"toBe\"
+ "received": 1,
+ "expected": 1,
+ "pass": true,
+ "matcherName": "toBe"
},
{
- \"received\": 1,
- \"expected\": 2,
- \"pass\": true,
- \"matcherName\": \"not.toBe\"
+ "received": 1,
+ "expected": 2,
+ "pass": true,
+ "matcherName": "not.toBe"
},
{
- \"received\": 1,
- \"expected\": 1,
- \"pass\": true,
- \"matcherName\": \"toBeCloseTo\"
+ "received": 1,
+ "expected": 1,
+ "pass": true,
+ "matcherName": "toBeCloseTo"
},
{
- \"received\": 1,
- \"expected\": 2,
- \"pass\": true,
- \"matcherName\": \"not.toBeCloseTo\"
+ "received": 1,
+ "expected": 2,
+ "pass": true,
+ "matcherName": "not.toBeCloseTo"
},
{
- \"received\": 1.234,
- \"expected\": 1.233,
- \"pass\": true,
- \"matcherName\": \"toBeCloseTo\"
+ "received": 1.234,
+ "expected": 1.233,
+ "pass": true,
+ "matcherName": "toBeCloseTo"
},
{
- \"received\": 1.234,
- \"expected\": 1.233,
- \"pass\": true,
- \"matcherName\": \"not.toBeCloseTo\"
+ "received": 1.234,
+ "expected": 1.233,
+ "pass": true,
+ "matcherName": "not.toBeCloseTo"
}
],
- \"failed\": []
+ "failed": []
}
},
{
- \"testName\": \"fail test\",
- \"type\": \"done\",
- \"result\": {
- \"passed\": [],
- \"failed\": [
+ "testName": "fail test",
+ "type": "done",
+ "result": {
+ "passed": [],
+ "failed": [
{
- \"received\": 10,
- \"expected\": -1,
- \"pass\": false,
- \"matcherName\": \"toBe\"
+ "received": 10,
+ "expected": -1,
+ "pass": false,
+ "matcherName": "toBe"
}
]
}
},
{
- \"testName\": \"async function (no timeout)\",
- \"type\": \"done\",
- \"result\": {
- \"passed\": [
+ "testName": "async function (no timeout)",
+ "type": "done",
+ "result": {
+ "passed": [
{
- \"received\": \"1\",
- \"expected\": \"1\",
- \"pass\": true,
- \"matcherName\": \"toBe\"
+ "received": "1",
+ "expected": "1",
+ "pass": true,
+ "matcherName": "toBe"
}
],
- \"failed\": []
+ "failed": []
}
},
{
- \"type\": \"error\",
- \"testName\": \"async functi
|
tests/prettify.test.ts > prettiify > sum:
tests/prettify.test.ts#L44
Error: Snapshot `prettiify > sum 1` mismatched
- Expected
+ Received
"
- <div class=\"test-report__result\">
- <span class=\"test-report__status-icon\">✓</span>
- <span class=\"test-report__status test-report__status--pass\">
+ <div class="test-report__result">
+ <span class="test-report__status-icon">✓</span>
+ <span class="test-report__status test-report__status--pass">
PASS
</span>
sum(1, 2) should be 3
</div>
- <div class=\"test-report__result\">
- <span class=\"test-report__status-icon\">×</span>
- <span class=\"test-report__status test-report__status--fail\">
+ <div class="test-report__result">
+ <span class="test-report__status-icon">×</span>
+ <span class="test-report__status test-report__status--fail">
FAIL
</span>
fail test
- <div class=\"test-report__errors\">expected: -1, received: 10</div>
+ <div class="test-report__errors">expected: -1, received: 10</div>
</div>
- <div class=\"test-report__result\">
- <span class=\"test-report__status-icon\">✓</span>
- <span class=\"test-report__status test-report__status--pass\">
+ <div class="test-report__result">
+ <span class="test-report__status-icon">✓</span>
+ <span class="test-report__status test-report__status--pass">
PASS
</span>
async function (no timeout)
</div>
- <div class=\"test-report__result\">
- <span class=\"test-report__status-icon\">×</span>
- <span class=\"test-report__status test-report__status--fail\">
+ <div class="test-report__result">
+ <span class="test-report__status-icon">×</span>
+ <span class="test-report__status test-report__status--fail">
FAIL
</span>
async function (timeout)
- <div class=\"test-report__errors\">timeout (specified time: 100ms)</div>
+ <div class="test-report__errors">timeout (specified time: 100ms)</div>
</div>
- <span class=\"test-report__summary-status test-report__summary-status--fail\">
+ <span class="test-report__summary-status test-report__summary-status--fail">
Tests: 2 failed, 2 passed, 4 total<br>
Time: 0.001 [s]
</span>
"
❯ tests/prettify.test.ts:44:18
|
tests/prettify.test.ts > prettiify > newline:
tests/prettify.test.ts#L105
Error: Snapshot `prettiify > newline 1` mismatched
- Expected
+ Received
"
- <div class=\"test-report__result\">
- <span class=\"test-report__status-icon\">×</span>
- <span class=\"test-report__status test-report__status--fail\">
+ <div class="test-report__result">
+ <span class="test-report__status-icon">×</span>
+ <span class="test-report__status test-report__status--fail">
FAIL
</span>
fail test
- <div class=\"test-report__errors\">expected: 10, received: 10\\n</div>
+ <div class="test-report__errors">expected: 10, received: 10\n</div>
</div>
- <span class=\"test-report__summary-status test-report__summary-status--fail\">
+ <span class="test-report__summary-status test-report__summary-status--fail">
Tests: 1 failed, 0 passed, 1 total<br>
Time: 0.001 [s]
</span>
"
❯ tests/prettify.test.ts:105:18
|
test
Process completed with exit code 1.
|