Update create-next-app template #65803
Merged
Azure Pipelines / azure next.js
failed
May 17, 2024 in 25m 51s
Build #20240517.67 had test failures
Details
- Failed: 2 (0.83%, 0 new, 2 recurring)
- Passed: 225 (92.98%)
- Other: 15 (6.20%)
- Total: 242
Annotations
Check failure on line 545 in Build log
azure-pipelines / azure next.js
Build log #L545
Cmd.exe exited with code '1'.
azure-pipelines / azure next.js
next/swc › hook_optimizer › should leave alone array destructuring of hooks
Test failed
Raw output
● next/swc › hook_optimizer › should leave alone array destructuring of hooks
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `next/swc hook_optimizer should leave alone array destructuring of hooks 1`
- Snapshot - 1
+ Received + 1
@@ -42,8 +42,8 @@
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
}
- import { useState } from 'react';
+ import { useState } from "react";
var _useState = _sliced_to_array(useState(0), 2), count = _useState[0], setCount = _useState[1];
"
21 | )
22 |
> 23 | expect(output).toMatchInlineSnapshot(`
| ^
24 | "function _array_like_to_array(arr, len) {
25 | if (len == null || len > arr.length) len = arr.length;
26 | for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
at Object.toMatchInlineSnapshot (unit/next-swc.test.ts:23:22)
Check failure on line 1 in next/swc › hook_optimizer › should leave alone array spread of hooks
azure-pipelines / azure next.js
next/swc › hook_optimizer › should leave alone array spread of hooks
Test failed
Raw output
● next/swc › hook_optimizer › should leave alone array spread of hooks
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `next/swc hook_optimizer should leave alone array spread of hooks 1`
- Snapshot - 1
+ Received + 1
@@ -21,8 +21,8 @@
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(n);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
}
- import { useState } from 'react';
+ import { useState } from "react";
var _useState = _to_array(useState(0)), copy = _useState.slice(0);
"
82 | )
83 |
> 84 | expect(output).toMatchInlineSnapshot(`
| ^
85 | "function _array_like_to_array(arr, len) {
86 | if (len == null || len > arr.length) len = arr.length;
87 | for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
at Object.toMatchInlineSnapshot (unit/next-swc.test.ts:84:22)
› 2 snapshots failed.
Snapshot Summary
› 2 snapshots failed from 1 test suite. Inspect your code changes or re-run jest with `-u` to update them.
Loading