chore(deps): update dependency rollup-vite to v8 (main) #1251
Annotations
20 errors
|
packages/bundle-utils/test/generator/yaml.test.ts > yml:
packages/bundle-utils/test/generator/yaml.test.ts#L12
Error: Snapshot `yml > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["I don't know!"])};fn.source="I don't know!";return fn;})(),
"emoji": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["😺"])};fn.source="😺";return fn;})(),
"unicode": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["A"])};fn.source="A";return fn;})(),
"unicode-escape": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\u0041"])};fn.source="\\u0041";return fn;})(),
"backslash-single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\'"])};fn.source="\\'";return fn;})(),
- "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\\\"])};fn.source="\\\\";return fn;})(),
+ "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\"])};fn.source="\\\\";return fn;})(),
"errors": [
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1001"])};fn.source="ERROR1001";return fn;})(),
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1002"])};fn.source="ERROR1002";return fn;})(),
],
❯ packages/bundle-utils/test/generator/yaml.test.ts:12:18
|
|
packages/bundle-utils/test/generator/yaml.test.ts > yaml:
packages/bundle-utils/test/generator/yaml.test.ts#L12
Error: Snapshot `yaml > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["I don't know!"])};fn.source="I don't know!";return fn;})(),
"emoji": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["😺"])};fn.source="😺";return fn;})(),
"unicode": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["A"])};fn.source="A";return fn;})(),
"unicode-escape": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\u0041"])};fn.source="\\u0041";return fn;})(),
"backslash-single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\'"])};fn.source="\\'";return fn;})(),
- "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\\\"])};fn.source="\\\\";return fn;})(),
+ "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\"])};fn.source="\\\\";return fn;})(),
"errors": [
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1001"])};fn.source="ERROR1001";return fn;})(),
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1002"])};fn.source="ERROR1002";return fn;})(),
],
❯ packages/bundle-utils/test/generator/yaml.test.ts:12:18
|
|
packages/bundle-utils/test/generator/json5.test.ts > AST code generation:
packages/bundle-utils/test/generator/json5.test.ts#L22
Error: Snapshot `AST code generation > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"I don\u0027t know!"}},
"emoji": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"😺"}},
"unicode": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"A"}},
"unicode-escape": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"\\u0041"}},
"backslash-single-quote": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"\\\u0027"}},
- "backslash-backslash": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"\\\\"}},
+ "backslash-backslash": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"\\"}},
"errors": [
{"type":0,"body":{"type":2,"items":[{"type":3}],"static":"ERROR1001"}},
{"type":0,"body":{"type":2,"items":[{"type":3}],"static":"ERROR1002"}}
],
"complex": {
❯ packages/bundle-utils/test/generator/json5.test.ts:22:16
|
|
packages/bundle-utils/test/generator/json5.test.ts > json5:
packages/bundle-utils/test/generator/json5.test.ts#L11
Error: Snapshot `json5 > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["I don't know!"])};fn.source="I don't know!";return fn;})(),
"emoji": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["😺"])};fn.source="😺";return fn;})(),
"unicode": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["A"])};fn.source="A";return fn;})(),
"unicode-escape": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\u0041"])};fn.source="\\u0041";return fn;})(),
"backslash-single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\'"])};fn.source="\\'";return fn;})(),
- "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\\\"])};fn.source="\\\\";return fn;})(),
+ "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\"])};fn.source="\\\\";return fn;})(),
"errors": [
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1001"])};fn.source="ERROR1001";return fn;})(),
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1002"])};fn.source="ERROR1002";return fn;})()
],
"complex": {
❯ packages/bundle-utils/test/generator/json5.test.ts:11:16
|
|
packages/bundle-utils/test/generator/json.test.ts > AST code generation > complex:
packages/bundle-utils/test/generator/json.test.ts#L176
Error: Snapshot `AST code generation > complex > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": {"type":0,"start":0,"end":13,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":14,"offset":13},"source":"I don\u0027t know!"},"body":{"type":2,"start":0,"end":13,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":14,"offset":13}},"items":[{"type":3,"start":0,"end":13,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":14,"offset":13}}}],"static":"I don\u0027t know!"}},
"emoji": {"type":0,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"source":"😺"},"body":{"type":2,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}},"items":[{"type":3,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}}}],"static":"😺"}},
"unicode": {"type":0,"start":0,"end":1,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":2,"offset":1},"source":"A"},"body":{"type":2,"start":0,"end":1,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":2,"offset":1}},"items":[{"type":3,"start":0,"end":1,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":2,"offset":1}}}],"static":"A"}},
"unicode-escape": {"type":0,"start":0,"end":6,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":7,"offset":6},"source":"\\u0041"},"body":{"type":2,"start":0,"end":6,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":7,"offset":6}},"items":[{"type":3,"start":0,"end":6,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":7,"offset":6}}}],"static":"\\u0041"}},
"backslash-single-quote": {"type":0,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"source":"\\\u0027"},"body":{"type":2,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}},"items":[{"type":3,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}}}],"static":"\\\u0027"}},
- "backslash-backslash": {"type":0,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"source":"\\\\"},"body":{"type":2,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}},"items":[{"type":3,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}}}],"static":"\\\\"}},
+ "backslash-backslash": {"type":0,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"source":"\\\\"},"body":{"type":2,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}},"items":[{"type":3,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}}}],"static":"\\"}},
"errors": [
{"type":0,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9},"source":"ERROR1001"},"body":{"type":2,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9}},"items":[{"type":3,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9}}}],"static":"ERROR1001"}},
{"type":0,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9},"source":"ERROR1002"},"body":{"type":2,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9}},"items":[{"type":3,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9}}}],"static":"ERROR1002"}}
],
"complex": {
❯ packages/bundle-utils/test/generator/json.test.ts:176:18
|
|
packages/bundle-utils/test/generator/json.test.ts > code generation > html tag in message:
packages/bundle-utils/test/generator/json.test.ts#L118
Error: Snapshot `code generation > html tag in message > code 1` mismatched
- Expected
+ Received
"{
- "hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hi there!</p>"])};fn.source="<p>hi there!</p>";return fn;})(),
+ "hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hi there!</p>"])};fn.source="<p>hi there!</p>";return fn;})(),
- "alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<script>window.alert('hi there!')</script>"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
+ "alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<script>window.alert('hi there!')</script>"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
}"
❯ packages/bundle-utils/test/generator/json.test.ts:118:18
|
|
packages/bundle-utils/test/generator/json.test.ts > code generation > complex:
packages/bundle-utils/test/generator/json.test.ts#L46
Error: Snapshot `code generation > complex > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["I don't know!"])};fn.source="I don't know!";return fn;})(),
"emoji": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["😺"])};fn.source="😺";return fn;})(),
"unicode": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["A"])};fn.source="A";return fn;})(),
"unicode-escape": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\u0041"])};fn.source="\\u0041";return fn;})(),
"backslash-single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\'"])};fn.source="\\'";return fn;})(),
- "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\\\"])};fn.source="\\\\";return fn;})(),
+ "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\"])};fn.source="\\\\";return fn;})(),
"errors": [
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1001"])};fn.source="ERROR1001";return fn;})(),
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1002"])};fn.source="ERROR1002";return fn;})()
],
"complex": {
❯ packages/bundle-utils/test/generator/json.test.ts:46:18
|
|
packages/bundle-utils/test/generator/js.test.ts > html tag in message:
packages/bundle-utils/test/generator/js.test.ts#L124
Error: Snapshot `html tag in message > code 1` mismatched
- Expected
+ Received
"{
- "hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hi there!</p>"])};fn.source="<p>hi there!</p>";return fn;})(),
+ "hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hi there!</p>"])};fn.source="<p>hi there!</p>";return fn;})(),
- "alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<script>window.alert('hi there!')</script>"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
+ "alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<script>window.alert('hi there!')</script>"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
}"
❯ packages/bundle-utils/test/generator/js.test.ts:124:16
|
|
packages/bundle-utils/test/generator/js.test.ts > complex:
packages/bundle-utils/test/generator/js.test.ts#L49
Error: Snapshot `complex > code 1` mismatched
- Expected
+ Received
@@ -13,11 +13,11 @@
"single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["I don't know!"])};fn.source="I don't know!";return fn;})(),
"emoji": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["😺"])};fn.source="😺";return fn;})(),
"unicode": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["A"])};fn.source="A";return fn;})(),
"unicode-escape": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\u0041"])};fn.source="\\u0041";return fn;})(),
"backslash-single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\'"])};fn.source="\\'";return fn;})(),
- "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\\\"])};fn.source="\\\\";return fn;})(),
+ "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\"])};fn.source="\\\\";return fn;})(),
"errors": [
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1001"])};fn.source="ERROR1001";return fn;})(),
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1002"])};fn.source="ERROR1002";return fn;})()
],
"complex": {
❯ packages/bundle-utils/test/generator/js.test.ts:49:16
|
|
packages/bundle-utils/test/generator/codegen.test.ts > generateMessageFunction > escapeHtml > true: should be escaped:
packages/bundle-utils/test/generator/codegen.test.ts#L85
Error: Snapshot `generateMessageFunction > escapeHtml > true: should be escaped 1` mismatched
Expected: ""(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hello</p>"])};fn.source="<p>hello</p>";return fn;})()""
Received: ""(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hello</p>"])};fn.source="<p>hello</p>";return fn;})()""
❯ packages/bundle-utils/test/generator/codegen.test.ts:85:20
|
|
packages/bundle-utils/test/generator/yaml.test.ts > yml:
packages/bundle-utils/test/generator/yaml.test.ts#L12
Error: Snapshot `yml > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["I don't know!"])};fn.source="I don't know!";return fn;})(),
"emoji": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["😺"])};fn.source="😺";return fn;})(),
"unicode": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["A"])};fn.source="A";return fn;})(),
"unicode-escape": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\u0041"])};fn.source="\\u0041";return fn;})(),
"backslash-single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\'"])};fn.source="\\'";return fn;})(),
- "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\\\"])};fn.source="\\\\";return fn;})(),
+ "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\"])};fn.source="\\\\";return fn;})(),
"errors": [
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1001"])};fn.source="ERROR1001";return fn;})(),
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1002"])};fn.source="ERROR1002";return fn;})(),
],
❯ packages/bundle-utils/test/generator/yaml.test.ts:12:18
|
|
packages/bundle-utils/test/generator/yaml.test.ts > yaml:
packages/bundle-utils/test/generator/yaml.test.ts#L12
Error: Snapshot `yaml > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["I don't know!"])};fn.source="I don't know!";return fn;})(),
"emoji": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["😺"])};fn.source="😺";return fn;})(),
"unicode": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["A"])};fn.source="A";return fn;})(),
"unicode-escape": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\u0041"])};fn.source="\\u0041";return fn;})(),
"backslash-single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\'"])};fn.source="\\'";return fn;})(),
- "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\\\"])};fn.source="\\\\";return fn;})(),
+ "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\"])};fn.source="\\\\";return fn;})(),
"errors": [
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1001"])};fn.source="ERROR1001";return fn;})(),
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1002"])};fn.source="ERROR1002";return fn;})(),
],
❯ packages/bundle-utils/test/generator/yaml.test.ts:12:18
|
|
packages/bundle-utils/test/generator/json5.test.ts > AST code generation:
packages/bundle-utils/test/generator/json5.test.ts#L22
Error: Snapshot `AST code generation > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"I don\u0027t know!"}},
"emoji": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"😺"}},
"unicode": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"A"}},
"unicode-escape": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"\\u0041"}},
"backslash-single-quote": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"\\\u0027"}},
- "backslash-backslash": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"\\\\"}},
+ "backslash-backslash": {"type":0,"body":{"type":2,"items":[{"type":3}],"static":"\\"}},
"errors": [
{"type":0,"body":{"type":2,"items":[{"type":3}],"static":"ERROR1001"}},
{"type":0,"body":{"type":2,"items":[{"type":3}],"static":"ERROR1002"}}
],
"complex": {
❯ packages/bundle-utils/test/generator/json5.test.ts:22:16
|
|
packages/bundle-utils/test/generator/json5.test.ts > json5:
packages/bundle-utils/test/generator/json5.test.ts#L11
Error: Snapshot `json5 > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["I don't know!"])};fn.source="I don't know!";return fn;})(),
"emoji": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["😺"])};fn.source="😺";return fn;})(),
"unicode": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["A"])};fn.source="A";return fn;})(),
"unicode-escape": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\u0041"])};fn.source="\\u0041";return fn;})(),
"backslash-single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\'"])};fn.source="\\'";return fn;})(),
- "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\\\"])};fn.source="\\\\";return fn;})(),
+ "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\"])};fn.source="\\\\";return fn;})(),
"errors": [
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1001"])};fn.source="ERROR1001";return fn;})(),
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1002"])};fn.source="ERROR1002";return fn;})()
],
"complex": {
❯ packages/bundle-utils/test/generator/json5.test.ts:11:16
|
|
packages/bundle-utils/test/generator/json.test.ts > AST code generation > complex:
packages/bundle-utils/test/generator/json.test.ts#L176
Error: Snapshot `AST code generation > complex > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": {"type":0,"start":0,"end":13,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":14,"offset":13},"source":"I don\u0027t know!"},"body":{"type":2,"start":0,"end":13,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":14,"offset":13}},"items":[{"type":3,"start":0,"end":13,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":14,"offset":13}}}],"static":"I don\u0027t know!"}},
"emoji": {"type":0,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"source":"😺"},"body":{"type":2,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}},"items":[{"type":3,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}}}],"static":"😺"}},
"unicode": {"type":0,"start":0,"end":1,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":2,"offset":1},"source":"A"},"body":{"type":2,"start":0,"end":1,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":2,"offset":1}},"items":[{"type":3,"start":0,"end":1,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":2,"offset":1}}}],"static":"A"}},
"unicode-escape": {"type":0,"start":0,"end":6,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":7,"offset":6},"source":"\\u0041"},"body":{"type":2,"start":0,"end":6,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":7,"offset":6}},"items":[{"type":3,"start":0,"end":6,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":7,"offset":6}}}],"static":"\\u0041"}},
"backslash-single-quote": {"type":0,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"source":"\\\u0027"},"body":{"type":2,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}},"items":[{"type":3,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}}}],"static":"\\\u0027"}},
- "backslash-backslash": {"type":0,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"source":"\\\\"},"body":{"type":2,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}},"items":[{"type":3,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}}}],"static":"\\\\"}},
+ "backslash-backslash": {"type":0,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2},"source":"\\\\"},"body":{"type":2,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}},"items":[{"type":3,"start":0,"end":2,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":3,"offset":2}}}],"static":"\\"}},
"errors": [
{"type":0,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9},"source":"ERROR1001"},"body":{"type":2,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9}},"items":[{"type":3,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9}}}],"static":"ERROR1001"}},
{"type":0,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9},"source":"ERROR1002"},"body":{"type":2,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9}},"items":[{"type":3,"start":0,"end":9,"loc":{"start":{"line":1,"column":1,"offset":0},"end":{"line":1,"column":10,"offset":9}}}],"static":"ERROR1002"}}
],
"complex": {
❯ packages/bundle-utils/test/generator/json.test.ts:176:18
|
|
packages/bundle-utils/test/generator/json.test.ts > code generation > html tag in message:
packages/bundle-utils/test/generator/json.test.ts#L118
Error: Snapshot `code generation > html tag in message > code 1` mismatched
- Expected
+ Received
"{
- "hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hi there!</p>"])};fn.source="<p>hi there!</p>";return fn;})(),
+ "hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hi there!</p>"])};fn.source="<p>hi there!</p>";return fn;})(),
- "alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<script>window.alert('hi there!')</script>"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
+ "alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<script>window.alert('hi there!')</script>"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
}"
❯ packages/bundle-utils/test/generator/json.test.ts:118:18
|
|
packages/bundle-utils/test/generator/json.test.ts > code generation > complex:
packages/bundle-utils/test/generator/json.test.ts#L46
Error: Snapshot `code generation > complex > code 1` mismatched
- Expected
+ Received
@@ -11,11 +11,11 @@
"single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["I don't know!"])};fn.source="I don't know!";return fn;})(),
"emoji": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["😺"])};fn.source="😺";return fn;})(),
"unicode": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["A"])};fn.source="A";return fn;})(),
"unicode-escape": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\u0041"])};fn.source="\\u0041";return fn;})(),
"backslash-single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\'"])};fn.source="\\'";return fn;})(),
- "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\\\"])};fn.source="\\\\";return fn;})(),
+ "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\"])};fn.source="\\\\";return fn;})(),
"errors": [
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1001"])};fn.source="ERROR1001";return fn;})(),
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1002"])};fn.source="ERROR1002";return fn;})()
],
"complex": {
❯ packages/bundle-utils/test/generator/json.test.ts:46:18
|
|
packages/bundle-utils/test/generator/js.test.ts > html tag in message:
packages/bundle-utils/test/generator/js.test.ts#L124
Error: Snapshot `html tag in message > code 1` mismatched
- Expected
+ Received
"{
- "hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hi there!</p>"])};fn.source="<p>hi there!</p>";return fn;})(),
+ "hi": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hi there!</p>"])};fn.source="<p>hi there!</p>";return fn;})(),
- "alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<script>window.alert('hi there!')</script>"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
+ "alert": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<script>window.alert('hi there!')</script>"])};fn.source="<script>window.alert('hi there!')</script>";return fn;})()
}"
❯ packages/bundle-utils/test/generator/js.test.ts:124:16
|
|
packages/bundle-utils/test/generator/js.test.ts > complex:
packages/bundle-utils/test/generator/js.test.ts#L49
Error: Snapshot `complex > code 1` mismatched
- Expected
+ Received
@@ -13,11 +13,11 @@
"single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["I don't know!"])};fn.source="I don't know!";return fn;})(),
"emoji": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["😺"])};fn.source="😺";return fn;})(),
"unicode": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["A"])};fn.source="A";return fn;})(),
"unicode-escape": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\u0041"])};fn.source="\\u0041";return fn;})(),
"backslash-single-quote": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\'"])};fn.source="\\'";return fn;})(),
- "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\\\"])};fn.source="\\\\";return fn;})(),
+ "backslash-backslash": (()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["\\"])};fn.source="\\\\";return fn;})(),
"errors": [
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1001"])};fn.source="ERROR1001";return fn;})(),
(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["ERROR1002"])};fn.source="ERROR1002";return fn;})()
],
"complex": {
❯ packages/bundle-utils/test/generator/js.test.ts:49:16
|
|
packages/bundle-utils/test/generator/codegen.test.ts > generateMessageFunction > escapeHtml > true: should be escaped:
packages/bundle-utils/test/generator/codegen.test.ts#L85
Error: Snapshot `generateMessageFunction > escapeHtml > true: should be escaped 1` mismatched
Expected: ""(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hello</p>"])};fn.source="<p>hello</p>";return fn;})()""
Received: ""(()=>{const fn=(ctx) => {const { normalize: _normalize } = ctx;return _normalize(["<p>hello</p>"])};fn.source="<p>hello</p>";return fn;})()""
❯ packages/bundle-utils/test/generator/codegen.test.ts:85:20
|