Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Jan 7, 2025
1 parent 7f45919 commit a0c07cb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/hydrate/platform/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ export const registerHost = (elm: d.HostElement, cmpMeta: d.ComponentRuntimeMeta
return hostRefs.set(elm, hostRef);
};

export const hostRefCleanup = (): void => {};

export const Build: d.UserBuildConditionals = {
isDev: false,
isBrowser: false,
Expand Down
2 changes: 1 addition & 1 deletion src/testing/platform/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { Build } from './testing-build';
export { modeResolutionChain, styles } from './testing-constants';
export { getHostRef, registerHost, registerInstance } from './testing-host-ref';
export { getHostRef, hostRefCleanup, registerHost, registerInstance } from './testing-host-ref';
export { consoleDevError, consoleDevInfo, consoleDevWarn, consoleError, setErrorHandler } from './testing-log';
export {
isMemberInElement,
Expand Down
5 changes: 5 additions & 0 deletions src/testing/platform/testing-host-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@ export const registerHost = (elm: d.HostElement, cmpMeta: d.ComponentRuntimeMeta
elm['s-rc'] = [];
hostRefs.set(elm, hostRef);
};

/**
* Ignore potential detached nodes when testing as we often enough reload the page.
*/
export const hostRefCleanup = (): void => {};

0 comments on commit a0c07cb

Please sign in to comment.