Skip to content

Commit 966c5af

Browse files
committed
fix(ci): change docs size test with e2e
1 parent d2eae98 commit 966c5af

File tree

12 files changed

+874
-420
lines changed

12 files changed

+874
-420
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -807,10 +807,6 @@ jobs:
807807
- name: Memory Benchmarks
808808
run: pnpm run test.bench.memory
809809

810-
- name: Docs Size Benchmarks
811-
if: needs.build-docs.result == 'success'
812-
run: pnpm run test.bench.docs-size
813-
814810
save-bench-cache:
815811
name: Save Benchmark Cache
816812
runs-on: ubuntu-latest

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ e2e/**/dist
1919
e2e/**/server
2020
node_modules
2121

22+
# E2E snapshot
23+
e2e/**/*.ssg.html
24+
2225
tsconfig.tsbuildinfo
2326

2427
# REPL files
@@ -29,7 +32,6 @@ packages/*/lib
2932
packages/*/dist
3033
packages/*/server
3134
packages/*/bindings
32-
e2e/*/server
3335

3436
# API output files
3537
packages/docs/src/routes/api
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!DOCTYPE html><html lang="en" q:render="static-ssr" q:route="/" q:container="paused" q:runtime="2" q:base="/build/" q:locale="" q:manifest-hash="[manifest]" q:instance="[instance]" :><head :><link rel="modulepreload" href="/build/q-xxxxxxxx.js" :><script async type="module" src="/build/q-xxxxxxxx.js" :></script><link rel="modulepreload" href="/build/q-xxxxxxxx.js" :><link rel="preload" href="/assets/xxxxxxxx-bundle-graph.json" as="fetch" crossorigin="anonymous" :><script type="module" async crossorigin="anonymous" :>let b=fetch("/assets/xxxxxxxx-bundle-graph.json");import("/build/q-xxxxxxxx.js").then(({l})=>l("/build/",b));</script><link rel="modulepreload" href="/build/q-xxxxxxxx.js" :><meta : charset="utf-8"><meta : name="viewport" content="width=device-width, initial-scale=1.0"><link : rel="canonical" href="https://snapshot.qwik.dev/"><title :="r5_0">Qwik Router SSG Snapshot</title><meta name="description" content="Deterministic SSG snapshot fixture" :="r5_1"><style :="ji2uyl-0" q:style="ji2uyl-0">@layer qwik{@supports selector(html:active-view-transition-type(type)){html:active-view-transition-type(qwik-navigation){:root{view-transition-name:none}}}@supports not selector(html:active-view-transition-type(type)){:root{view-transition-name:none}}}</style></head><body :><main :="q1_2"><h1 :>SSG Snapshot Fixture</h1><p : id="tags">routeLoader$ | useResource$ | useSignal</p><section : id="loader-json">{&quot;heading&quot;:&quot;SSG Snapshot Fixture&quot;,&quot;stats&quot;:[2,3,5,8],&quot;tags&quot;:[&quot;routeLoader$&quot;,&quot;useResource$&quot;,&quot;useSignal&quot;],&quot;profile&quot;:{&quot;name&quot;:&quot;router-state&quot;,&quot;status&quot;:&quot;stable&quot;}}</section><section : id="summary-json">{&quot;total&quot;:18,&quot;selectedCount&quot;:2,&quot;clicks&quot;:2}</section><section :="q1_0" id="resource-json">{&quot;headline&quot;:&quot;router-state:stable&quot;,&quot;selected&quot;:[&quot;alpha&quot;,&quot;beta&quot;],&quot;weighted&quot;:[2,6,15,32],&quot;summary&quot;:{&quot;total&quot;:18,&quot;selectedCount&quot;:2,&quot;clicks&quot;:2}}</section></main><script q-d:qinit="q-xxxxxxxx.js#_run#1" q-d:qrouterpopstate="q-xxxxxxxx.js#_run#2" q:p="3" :="Fn_1" q-d:qcinit="q-xxxxxxxx.js#_run#4"></script>[state omitted]
2+
[vnode map omitted]
3+
<script type="module" async="true" q:type="preload" :>window.addEventListener('load',f=>{f=_=>import("/build/q-xxxxxxxx.js").then(({p})=>p(["q-xxxxxxxx.js","q-xxxxxxxx.js","q-xxxxxxxx.js","q-xxxxxxxx.js","q-xxxxxxxx.js","q-xxxxxxxx.js","q-xxxxxxxx.js"]));try{requestIdleCallback(f,{timeout:2000})}catch(e){setTimeout(f,200)}})</script><script q:func="qwik/json" :>document["qFuncs_xxxxxx"]=[()=>{((w,h)=>{if(!w._qcs){w._qcs=!0;const s=h.state?._qRouterScroll;if(s){h.scrollRestoration="manual";w.scrollTo(s.x,s.y);}document.dispatchEvent(new Event("qcinit"));}})(window,history);},(p0)=>p0.url.href,(p0)=>p0.value.heading]</script><script :>(window._qwikEv||(window._qwikEv=[])).push("d:qinit","d:qrouterpopstate","d:qcinit")</script></body></html>

0 commit comments

Comments
 (0)