test: use table test to snapshot fixtures #166
Annotations
7 errors
fixtures.test.ts > fixtures > 'context-module/input.svelte':
tests/fixtures.test.ts#L38
Error: Snapshot `fixtures > 'context-module/input.svelte' 1` mismatched
- Expected
+ Received
@@ -50,11 +50,11 @@
{
"name": "log",
"kind": "function",
"description": "Log something",
"type": "(message: string) => void",
- "value": "() => { console.log(message); }",
+ "value": "() => {\r console.log(message);\r }",
"isFunction": true,
"isFunctionDeclaration": true,
"isRequired": false,
"constant": false,
"reactive": false
❯ fixtures.test.ts:38:22
|
fixtures.test.ts > fixtures > 'function-declaration/input.svelte':
tests/fixtures.test.ts#L38
Error: Snapshot `fixtures > 'function-declaration/input.svelte' 1` mismatched
- Expected
+ Received
@@ -24,11 +24,11 @@
},
{
"name": "add",
"kind": "function",
"type": "() => any",
- "value": "() => { return a + b; }",
+ "value": "() => { return a + b; }",
"isFunction": true,
"isFunctionDeclaration": true,
"isRequired": false,
"constant": false,
"reactive": false
@@ -36,11 +36,11 @@
{
"name": "multiply",
"kind": "function",
"description": "Multiplies two numbers",
"type": "(a: number, b: number) => number",
- "value": "() => { return a * b; }",
+ "value": "() => { return a * b; }",
"isFunction": true,
"isFunctionDeclaration": true,
"isRequired": false,
"constant": false,
"reactive": false
❯ fixtures.test.ts:38:22
|
fixtures.test.ts > fixtures > 'infer-basic/input.svelte':
tests/fixtures.test.ts#L38
Error: Snapshot `fixtures > 'infer-basic/input.svelte' 1` mismatched
- Expected
+ Received
@@ -65,11 +65,11 @@
},
{
"name": "fn",
"kind": "function",
"type": "() => any",
- "value": "() => { localBool = !localBool; }",
+ "value": "() => { localBool = !localBool; }",
"isFunction": true,
"isFunctionDeclaration": true,
"isRequired": false,
"constant": false,
"reactive": false
❯ fixtures.test.ts:38:22
|
fixtures.test.ts > fixtures > 'infer-with-types/input.svelte':
tests/fixtures.test.ts#L38
Error: Snapshot `fixtures > 'infer-with-types/input.svelte' 1` mismatched
- Expected
+ Received
@@ -56,11 +56,11 @@
},
{
"name": "fn",
"kind": "function",
"type": "() => any",
- "value": "() => { localBool = !localBool; }",
+ "value": "() => { localBool = !localBool; }",
"isFunction": true,
"isFunctionDeclaration": true,
"isRequired": false,
"constant": false,
"reactive": false
❯ fixtures.test.ts:38:22
|
build (20, windows-latest)
Process completed with exit code 1.
|
build (20, macos-latest)
The job was canceled because "_20_windows-latest" failed.
|
build (20, macos-latest)
The operation was canceled.
|