Skip to content

Commit

Permalink
Fix ComponentHarnes that was using instance from root export that was…
Browse files Browse the repository at this point in the history
… removed
  • Loading branch information
craigbeck committed Apr 19, 2024
1 parent 190249d commit 6c4daa9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test-utils/ComponentHarness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -20,6 +20,8 @@ export class PageForHarness extends PageForClient {
html?: any;
}

const derby = new DerbyForClient();

export class AppForHarness extends AppForClient {
_harness: any;
_pages: PageForHarness[];
Expand Down

0 comments on commit 6c4daa9

Please sign in to comment.