Skip to content

Commit 30b618c

Browse files
Update tests
1 parent a9f8d43 commit 30b618c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/smoke_static_site.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import urllib.request
1515

1616

17+
PROJECT_ROOT = pathlib.Path(__file__).resolve().parents[1]
18+
1719
REQUIRED_FILES = [
1820
"index.html",
1921
"styles.css",
@@ -149,7 +151,8 @@ def validate_bundle_exports(site_root: pathlib.Path) -> None:
149151
raise AssertionError("bundle.js contains unsupported lowering output")
150152
if "null /*" in bundle_js:
151153
raise AssertionError("bundle.js contains placeholder lowering output")
152-
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)
153156

154157

155158
def validate_bundle_graph_runtime(bundle_js: str) -> None:

0 commit comments

Comments
 (0)