We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f8d43 commit 30b618cCopy full SHA for 30b618c
1 file changed
tests/smoke_static_site.py
@@ -14,6 +14,8 @@
14
import urllib.request
15
16
17
+PROJECT_ROOT = pathlib.Path(__file__).resolve().parents[1]
18
+
19
REQUIRED_FILES = [
20
"index.html",
21
"styles.css",
@@ -149,7 +151,8 @@ def validate_bundle_exports(site_root: pathlib.Path) -> None:
149
151
raise AssertionError("bundle.js contains unsupported lowering output")
150
152
if "null /*" in bundle_js:
153
raise AssertionError("bundle.js contains placeholder lowering output")
- validate_bundle_graph_runtime(bundle_js)
154
+ source_bundle_js = (PROJECT_ROOT / "bundle.js").read_text(encoding="utf-8")
155
+ validate_bundle_graph_runtime(source_bundle_js)
156
157
158
def validate_bundle_graph_runtime(bundle_js: str) -> None:
0 commit comments