Skip to content

Commit f35e19b

Browse files
triuzziclaude
andauthored
fix(test): regenerate snapshots after upstream sync to v0.24.0 (#12)
The bundled lighthouse output reformatted urlpattern-polyfill's license text and changed McpResponse's tool descriptions. The snapshot test runs only when build/src/third_party/THIRD_PARTY_NOTICES exists (i.e. after npm run bundle, which CI runs but local test:no-build does not), so this failure surfaced only in CI after the v0.4.0 release. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 0bf8d55 commit f35e19b

2 files changed

Lines changed: 81 additions & 54 deletions

File tree

tests/McpResponse.test.js.snapshot

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,36 +1206,6 @@ exports[`extensions > lists extensions 2`] = `
12061206
}
12071207
`;
12081208

1209-
exports[`third-party developer tools > lists third-party developer tools 1`] = `
1210-
## Third-party developer tools
1211-
My Tool Group: A group of tools
1212-
Available tools:
1213-
name="myTool", description="Does something", inputSchema={"type":"object","properties":{"foo":{"type":"string"}}}
1214-
`;
1215-
1216-
exports[`third-party developer tools > lists third-party developer tools 2`] = `
1217-
{
1218-
"thirdPartyDeveloperTools": {
1219-
"name": "My Tool Group",
1220-
"description": "A group of tools",
1221-
"tools": [
1222-
{
1223-
"name": "myTool",
1224-
"description": "Does something",
1225-
"inputSchema": {
1226-
"type": "object",
1227-
"properties": {
1228-
"foo": {
1229-
"type": "string"
1230-
}
1231-
}
1232-
}
1233-
}
1234-
]
1235-
}
1236-
}
1237-
`;
1238-
12391209
exports[`lighthouse > includes lighthouse report paths 1`] = `
12401210
## Lighthouse Audit Results
12411211
Mode: navigation
@@ -1282,6 +1252,36 @@ exports[`lighthouse > includes lighthouse report paths 2`] = `
12821252
}
12831253
`;
12841254

1255+
exports[`third-party developer tools > lists third-party developer tools 1`] = `
1256+
## Third-party developer tools
1257+
My Tool Group: A group of tools
1258+
Available tools:
1259+
name="myTool", description="Does something", inputSchema={"type":"object","properties":{"foo":{"type":"string"}}}
1260+
`;
1261+
1262+
exports[`third-party developer tools > lists third-party developer tools 2`] = `
1263+
{
1264+
"thirdPartyDeveloperTools": {
1265+
"name": "My Tool Group",
1266+
"description": "A group of tools",
1267+
"tools": [
1268+
{
1269+
"name": "myTool",
1270+
"description": "Does something",
1271+
"inputSchema": {
1272+
"type": "object",
1273+
"properties": {
1274+
"foo": {
1275+
"type": "string"
1276+
}
1277+
}
1278+
}
1279+
}
1280+
]
1281+
}
1282+
}
1283+
`;
1284+
12851285
exports[`webmcp > includes webmcp tools in list_pages response 1`] = `
12861286
## Pages
12871287
1: about:blank [selected]

tests/third_party_notices.test.js.snapshot

Lines changed: 51 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
11
exports[`THIRD_PARTY_NOTICES > matches snapshot if exists 1`] = `
2+
Name: urlpattern-polyfill
3+
URL: https://github.com/kenchris/urlpattern-polyfill
4+
Version: <VERSION>
5+
License: MIT
6+
7+
Copyright 2020 Intel Corporation
8+
9+
Permission is hereby granted, free of charge, to any person obtaining a copy
10+
of this software and associated documentation files (the "Software"), to deal
11+
in the Software without restriction, including without limitation the rights
12+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
copies of the Software, and to permit persons to whom the Software is
14+
furnished to do so, subject to the following conditions:
15+
16+
The above copyright notice and this permission notice shall be included in
17+
all copies or substantial portions of the Software.
18+
19+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25+
THE SOFTWARE.
26+
27+
-------------------- DEPENDENCY DIVIDER --------------------
28+
229
Name: core-js
330
URL: https://core-js.io
431
Version: <VERSION>
@@ -294,6 +321,30 @@ Permission to use, copy, modify, and/or distribute this software for any purpose
294321
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
295322

296323

324+
-------------------- DEPENDENCY DIVIDER --------------------
325+
326+
Name: semver
327+
URL: git+https://github.com/npm/node-semver.git
328+
Version: <VERSION>
329+
License: ISC
330+
331+
The ISC License
332+
333+
Copyright (c) Isaac Z. Schlueter and Contributors
334+
335+
Permission to use, copy, modify, and/or distribute this software for any
336+
purpose with or without fee is hereby granted, provided that the above
337+
copyright notice and this permission notice appear in all copies.
338+
339+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
340+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
341+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
342+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
343+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
344+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
345+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
346+
347+
297348
-------------------- DEPENDENCY DIVIDER --------------------
298349

299350
Name: debug
@@ -829,30 +880,6 @@ URL: https://github.com/puppeteer/puppeteer/tree/main/packages/browsers
829880
Version: <VERSION>
830881
License: Apache-2.0
831882

832-
-------------------- DEPENDENCY DIVIDER --------------------
833-
834-
Name: semver
835-
URL: git+https://github.com/npm/node-semver.git
836-
Version: <VERSION>
837-
License: ISC
838-
839-
The ISC License
840-
841-
Copyright (c) Isaac Z. Schlueter and Contributors
842-
843-
Permission to use, copy, modify, and/or distribute this software for any
844-
purpose with or without fee is hereby granted, provided that the above
845-
copyright notice and this permission notice appear in all copies.
846-
847-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
848-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
849-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
850-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
851-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
852-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
853-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
854-
855-
856883
-------------------- DEPENDENCY DIVIDER --------------------
857884

858885
Name: proxy-agent

0 commit comments

Comments
 (0)