From e67313645167b20e5c53f004d56356ca66ee190b Mon Sep 17 00:00:00 2001 From: Denis Bendrikov Date: Sun, 12 Feb 2023 20:50:20 +0200 Subject: [PATCH] refactor(general): use relative import Using relative paths within the same project prevents circular self dependency. It strikes when f.e. you configure your tsconfig.base to use `dist` instead of `src`, because in such case `jest` will not be able to import it (so this test will fail) --- packages/akita/src/__tests__/env.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/akita/src/__tests__/env.spec.ts b/packages/akita/src/__tests__/env.spec.ts index 67860bed..9a423ad7 100644 --- a/packages/akita/src/__tests__/env.spec.ts +++ b/packages/akita/src/__tests__/env.spec.ts @@ -1,4 +1,4 @@ -import { enableAkitaProdMode } from '@datorama/akita'; +import { enableAkitaProdMode } from '../lib/env'; // isBrowser expression has to be mocked because // in context of enableAkitaProdMode func it evaluates