11/* eslint-disable @typescript-eslint/no-floating-promises */
22import { cdnSettingsKitchenSink } from '../../test-helpers/fixtures/cdn-settings'
33import { createMockFetchImplementation } from '../../test-helpers/fixtures/create-fetch-method'
4- import { Context } from '@ /core/context'
5- import { Plugin } from '@ /core/plugin'
4+ import { Context } from '../.. /core/context'
5+ import { Plugin } from '../.. /core/plugin'
66import { JSDOM } from 'jsdom'
77import { Analytics , InitOptions } from '../../core/analytics'
88import { LegacyDestination } from '../../plugins/ajs-destination'
@@ -17,7 +17,7 @@ import { PriorityQueue } from '../../lib/priority-queue'
1717import { getCDN , setGlobalCDNUrl } from '../../lib/parse-cdn'
1818import { clearAjsBrowserStorage } from '../../test-helpers/browser-storage'
1919import { parseFetchCall } from '../../test-helpers/fetch-parse'
20- import { ActionDestination } from '@ /plugins/remote-loader'
20+ import { ActionDestination } from '../.. /plugins/remote-loader'
2121
2222let fetchCalls : ReturnType < typeof parseFetchCall > [ ] = [ ]
2323
@@ -208,7 +208,7 @@ describe('Initialization', () => {
208208 } )
209209
210210 it ( 'calls page if initialpageview is set' , async ( ) => {
211- jest . mock ( '@ /core/analytics' )
211+ jest . mock ( '../.. /core/analytics' )
212212 const mockPage = jest . fn ( ) . mockImplementation ( ( ) => Promise . resolve ( ) )
213213 Analytics . prototype . page = mockPage
214214
@@ -218,7 +218,7 @@ describe('Initialization', () => {
218218 } )
219219
220220 it ( 'does not call page if initialpageview is not set' , async ( ) => {
221- jest . mock ( '@ /core/analytics' )
221+ jest . mock ( '../.. /core/analytics' )
222222 const mockPage = jest . fn ( )
223223 Analytics . prototype . page = mockPage
224224 await AnalyticsBrowser . load ( { writeKey } , { initialPageview : false } )
0 commit comments