release: WRNexusJS 0.5.0
This commit is contained in:
1 parent
76c768099d
commit
6afe32f63f
456 files changed
+40879
-8850
No files matched your search
@@ -8,3 +8,11 @@ test("HMR client syncs fresh HTML over the websocket", () => {
|
||||
expect(HMR_CLIENT_JS).not.toContain("fetch(location.href");
|
||||
expect(HMR_CLIENT_JS).not.toContain("location.reload()");
|
||||
});
|
||||
|
||||
test("HMR replaces hydrated components when their server signature changes", () => {
|
||||
expect(HMR_CLIENT_JS).toContain('from.getAttribute("data-wrn-hydration")');
|
||||
expect(HMR_CLIENT_JS).toContain('from.getAttribute("data-wrn-behavior")');
|
||||
expect(HMR_CLIENT_JS).toContain('from.getAttribute("data-scope")');
|
||||
expect(HMR_CLIENT_JS).toContain("window.__wrnexusDisposeBehaviors(from)");
|
||||
expect(HMR_CLIENT_JS).toContain("from.replaceWith(to.cloneNode(true))");
|
||||
});
|
||||
Reference in new issue
Block a user