File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @posthog/wizard" ,
3- "version" : " 1.8.3 " ,
3+ "version" : " 1.8.4 " ,
44 "homepage" : " https://github.com/posthog/wizard" ,
55 "repository" : " https://github.com/posthog/wizard" ,
66 "description" : " The PostHog wizard helps you to configure your project" ,
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import type { AIModel, CloudRegion } from './types';
55import { getCloudUrlFromRegion } from './urls' ;
66import { analytics } from './analytics' ;
77import { AxiosError } from 'axios' ;
8- import { fixtureTracker } from '../../e2e-tests/mocks/fixture-tracker' ;
9- import { shouldRecord } from '../../e2e-tests/mocks/handlers' ;
108
119export interface QueryOptions < S > {
1210 message : string ;
@@ -36,7 +34,7 @@ export const query = async <S>({
3634 {
3735 headers : {
3836 'X-PostHog-Wizard-Hash' : wizardHash ,
39- ...( shouldRecord
37+ ...( process . env . RECORD_FIXTURES === 'true'
4038 ? { 'X-PostHog-Wizard-Fixture-Generation' : true }
4139 : { } ) ,
4240 } ,
@@ -65,6 +63,10 @@ export const query = async <S>({
6563 }
6664
6765 if ( process . env . NODE_ENV === 'test' ) {
66+ const { fixtureTracker } = await import (
67+ '../../e2e-tests/mocks/fixture-tracker.js'
68+ ) ;
69+
6870 const requestBody = JSON . stringify ( {
6971 message,
7072 model,
You can’t perform that action at this time.
0 commit comments