feat: automatically preload
and preconnect
relevant scripts
#1051
Annotations
3 errors
test/e2e/basic.test.ts > basic > bundle:
test/e2e/basic.test.ts#L149
Error: Snapshot `basic > bundle 1` mismatched
Expected: ""/_scripts/6nd5bD9YCW.js""
Received: """"
❯ test/e2e/basic.test.ts:149:18
|
test/e2e/extend-registry.test.ts > basic > extended registry script loads and executes function:
test/e2e/extend-registry.test.ts#L26
Error: Snapshot `basic > extended registry script loads and executes function 1` mismatched
- Expected
+ Received
[
{
- "location": "/myScript.js:1",
- "text": "Script -- Loading",
- },
- {
- "location": "/myScript.js:5",
- "text": "Script -- Loaded",
- },
- {
- "location": "/myScript.js:3",
- "text": "Script -- Executed -- test",
+ "location": "/_nuxt/@fs/home/runner/work/scripts/scripts/node_modules/.pnpm/@unhead[email protected]/node_modules/@unhead/dom/dist/index.mjs:148",
+ "text": "A preload for 'http://127.0.0.1:42075/myScript.js' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.",
+ },
+ {
+ "location": "/myScript.js:1",
+ "text": "Script -- Loading",
+ },
+ {
+ "location": "/myScript.js:5",
+ "text": "Script -- Loaded",
+ },
+ {
+ "location": "/myScript.js:3",
+ "text": "Script -- Executed -- test",
+ },
+ {
+ "location": "/:0",
+ "text": "The resource http://127.0.0.1:42075/myScript.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.",
},
]
❯ it.timeout test/e2e/extend-registry.test.ts:26:18
|
ci
Process completed with exit code 1.
|