From 6c4daa932c7ea4640a8f36b66348679a98c2ceae Mon Sep 17 00:00:00 2001 From: Craig Beck Date: Fri, 19 Apr 2024 14:46:18 -0700 Subject: [PATCH] Fix ComponentHarnes that was using instance from root export that was removed --- src/test-utils/ComponentHarness.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test-utils/ComponentHarness.ts b/src/test-utils/ComponentHarness.ts index 0b663ab7..7f71d949 100644 --- a/src/test-utils/ComponentHarness.ts +++ b/src/test-utils/ComponentHarness.ts @@ -4,10 +4,10 @@ import { parse as urlParse } from 'url'; import * as qs from 'qs'; import { RootModel } from 'racer'; -import { instance as derby } from '..'; import { AppForClient } from '../App'; import { AppForServer } from '../AppForServer'; import { Component, ComponentConstructor, extendComponent, createFactory } from '../components'; +import { DerbyForClient } from '../Derby'; import { PageForClient } from '../Page'; export interface RenderOptions { @@ -20,6 +20,8 @@ export class PageForHarness extends PageForClient { html?: any; } +const derby = new DerbyForClient(); + export class AppForHarness extends AppForClient { _harness: any; _pages: PageForHarness[];