feat(snapshot): ability to skip snapshot from custom serializer + attest
example
#12149
ci.yml
on: pull_request
Diff: node-latest, ubuntu-latest
8s
Lint: node-latest, ubuntu-latest
2m 25s
Matrix: test-browser
Matrix: test
Annotations
10 errors
test/basic.test.ts > skip types:
test/attest/test/basic.test.ts#L13
AssertionError: expected '\n RUN v2.1.4 /Users/runner/work/vit…' to contain 'Test Files 1 passed'
- Expected
+ Received
- Test Files 1 passed
+
+ RUN v2.1.4 /Users/runner/work/vitest/vitest/test/attest/fixtures
+
+ ⏳ Waiting for TypeScript to check your project (this may take a while)...
+ ✓ test/assertion.test.ts (1 test) 53ms
+ ✓ test/snapshot.test.ts (5 tests) 61ms
+
+ Test Files 2 passed (2)
+ Tests 6 passed (6)
+ Start at 05:56:09
+ Duration 1.57s (transform 25ms, setup 648ms, collect 24ms, tests 114ms, environment 0ms, prepare 67ms)
+
+
❯ test/basic.test.ts:13:25
|
Build&Test: node-20, macos-latest
Process completed with exit code 1.
|
test/basic.test.ts > skip types:
test/attest/test/basic.test.ts#L13
AssertionError: expected '\n RUN v2.1.4 /home/runner/work/vite…' to contain 'Test Files 1 passed'
- Expected
+ Received
- Test Files 1 passed
+
+ RUN v2.1.4 /home/runner/work/vitest/vitest/test/attest/fixtures
+
+ ⏳ Waiting for TypeScript to check your project (this may take a while)...
+ ✓ test/assertion.test.ts (1 test) 98ms
+ ✓ test/snapshot.test.ts (5 tests) 109ms
+
+ Test Files 2 passed (2)
+ Tests 6 passed (6)
+ Start at 05:56:28
+ Duration 2.94s (transform 52ms, setup 1.35s, collect 51ms, tests 207ms, environment 0ms, prepare 139ms)
+
+
❯ test/basic.test.ts:13:25
|
Build&Test: node-22, ubuntu-latest
Process completed with exit code 1.
|
test/basic.test.ts > skip types:
test/attest/test/basic.test.ts#L13
AssertionError: expected '\n RUN v2.1.4 /home/runner/work/vite…' to contain 'Test Files 1 passed'
- Expected
+ Received
- Test Files 1 passed
+
+ RUN v2.1.4 /home/runner/work/vitest/vitest/test/attest/fixtures
+
+ ⏳ Waiting for TypeScript to check your project (this may take a while)...
+ ✓ test/assertion.test.ts (1 test) 88ms
+ ✓ test/snapshot.test.ts (5 tests) 100ms
+
+ Test Files 2 passed (2)
+ Tests 6 passed (6)
+ Start at 05:56:35
+ Duration 2.87s (transform 53ms, setup 1.18s, collect 47ms, tests 188ms, environment 0ms, prepare 129ms)
+
+
❯ test/basic.test.ts:13:25
|
Build&Test: node-20, ubuntu-latest
Process completed with exit code 1.
|
test/basic.test.ts > skip types:
test/attest/test/basic.test.ts#L13
AssertionError: expected '\n RUN v2.1.4 /home/runner/work/vite…' to contain 'Test Files 1 passed'
- Expected
+ Received
- Test Files 1 passed
+
+ RUN v2.1.4 /home/runner/work/vitest/vitest/test/attest/fixtures
+
+ ⏳ Waiting for TypeScript to check your project (this may take a while)...
+ ✓ test/assertion.test.ts (1 test) 119ms
+ ✓ test/snapshot.test.ts (5 tests) 128ms
+
+ Test Files 2 passed (2)
+ Tests 6 passed (6)
+ Start at 05:56:38
+ Duration 2.98s (transform 55ms, setup 1.16s, collect 44ms, tests 247ms, environment 0ms, prepare 140ms)
+
+
❯ test/basic.test.ts:13:25
|
Build&Test: node-18, ubuntu-latest
Process completed with exit code 1.
|
test/basic.test.ts > skip types:
test/attest/test/basic.test.ts#L13
AssertionError: expected '\n RUN v2.1.4 D:/a/vitest/vitest/tes…' to contain 'Test Files 1 passed'
- Expected
+ Received
- Test Files 1 passed
+
+ RUN v2.1.4 D:/a/vitest/vitest/test/attest/fixtures
+
+ ⏳ Waiting for TypeScript to check your project (this may take a while)...
+ ✓ test/assertion.test.ts (1 test) 132ms
+ ✓ test/snapshot.test.ts (5 tests) 144ms
+
+ Test Files 2 passed (2)
+ Tests 6 passed (6)
+ Start at 05:59:08
+ Duration 3.91s (transform 68ms, setup 1.70s, collect 69ms, tests 277ms, environment 1ms, prepare 235ms)
+
+
❯ test/basic.test.ts:13:25
|
Build&Test: node-20, windows-latest
Process completed with exit code 1.
|