diff --git a/packages/nova-react-test-utils/src/apollo/test-utils.tsx b/packages/nova-react-test-utils/src/apollo/test-utils.tsx index 77050e5..7ba9c2c 100644 --- a/packages/nova-react-test-utils/src/apollo/test-utils.tsx +++ b/packages/nova-react-test-utils/src/apollo/test-utils.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import { ApolloProvider } from "@apollo/client"; import type { GraphQLSchema } from "graphql"; import type { MockFunctions } from "@graphitation/apollo-mock-client"; diff --git a/packages/nova-react-test-utils/src/apollo/utils.test.tsx b/packages/nova-react-test-utils/src/apollo/utils.test.tsx index dd46819..b8b2c2b 100644 --- a/packages/nova-react-test-utils/src/apollo/utils.test.tsx +++ b/packages/nova-react-test-utils/src/apollo/utils.test.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import { buildASTSchema, parse } from "graphql"; import type { ReactTestRenderer } from "react-test-renderer"; import { act, create as createTestRenderer } from "react-test-renderer"; diff --git a/packages/nova-react-test-utils/src/shared/nova-mock-environment.tsx b/packages/nova-react-test-utils/src/shared/nova-mock-environment.tsx index f2e4978..90bd32c 100644 --- a/packages/nova-react-test-utils/src/shared/nova-mock-environment.tsx +++ b/packages/nova-react-test-utils/src/shared/nova-mock-environment.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; import type { ComponentType, PropsWithChildren } from "react"; import type { NovaCentralizedCommanding, diff --git a/packages/nova-react/src/commanding/nova-centralized-commanding-provider.test.tsx b/packages/nova-react/src/commanding/nova-centralized-commanding-provider.test.tsx index c50cdc9..ced0d9e 100644 --- a/packages/nova-react/src/commanding/nova-centralized-commanding-provider.test.tsx +++ b/packages/nova-react/src/commanding/nova-centralized-commanding-provider.test.tsx @@ -2,7 +2,7 @@ * @jest-environment jsdom */ -import React from "react"; +import * as React from "react"; import { render } from "@testing-library/react"; import { NovaCentralizedCommandingProvider, diff --git a/packages/nova-react/src/commanding/nova-centralized-commanding-provider.tsx b/packages/nova-react/src/commanding/nova-centralized-commanding-provider.tsx index 2ee5483..82c5ad7 100644 --- a/packages/nova-react/src/commanding/nova-centralized-commanding-provider.tsx +++ b/packages/nova-react/src/commanding/nova-centralized-commanding-provider.tsx @@ -1,6 +1,6 @@ -import React from "react"; +import * as React from "react"; import type { NovaCentralizedCommanding } from "@nova/types"; -import invariant from "invariant"; +import * as invariant from "invariant"; // Initializing default with null to make sure providers are correctly placed in the tree const NovaCommandingContext = diff --git a/packages/nova-react/src/eventing/nova-eventing-provider.test.tsx b/packages/nova-react/src/eventing/nova-eventing-provider.test.tsx index 4788e29..6e5e07b 100644 --- a/packages/nova-react/src/eventing/nova-eventing-provider.test.tsx +++ b/packages/nova-react/src/eventing/nova-eventing-provider.test.tsx @@ -2,7 +2,7 @@ * @jest-environment jsdom */ -import React from "react"; +import * as React from "react"; import { render, waitFor } from "@testing-library/react"; import type { GeneratedEventWrapper, diff --git a/packages/nova-react/src/eventing/nova-eventing-provider.tsx b/packages/nova-react/src/eventing/nova-eventing-provider.tsx index da3b941..bfc5677 100644 --- a/packages/nova-react/src/eventing/nova-eventing-provider.tsx +++ b/packages/nova-react/src/eventing/nova-eventing-provider.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import type { NovaEvent, NovaEventing, EventWrapper } from "@nova/types"; import { InputType } from "@nova/types"; -import invariant from "invariant"; +import * as invariant from "invariant"; // Context is initialized with an empty object and this is null-checked within the hooks const NovaEventingContext = React.createContext({}); diff --git a/packages/nova-react/src/graphql/hooks.test.tsx b/packages/nova-react/src/graphql/hooks.test.tsx index dfb303f..6404272 100644 --- a/packages/nova-react/src/graphql/hooks.test.tsx +++ b/packages/nova-react/src/graphql/hooks.test.tsx @@ -2,7 +2,7 @@ * @jest-environment jsdom */ -import React from "react"; +import * as React from "react"; import { render, screen, renderHook } from "@testing-library/react"; import { NovaGraphQLProvider } from "./nova-graphql-provider"; diff --git a/packages/nova-react/src/graphql/hooks.ts b/packages/nova-react/src/graphql/hooks.ts index dc1cee9..14d16c4 100644 --- a/packages/nova-react/src/graphql/hooks.ts +++ b/packages/nova-react/src/graphql/hooks.ts @@ -1,5 +1,5 @@ import { useNovaGraphQL } from "./nova-graphql-provider"; -import invariant from "invariant"; +import * as invariant from "invariant"; import type { GraphQLTaggedNode } from "./taggedNode"; import type { @@ -8,7 +8,7 @@ import type { OperationType, PaginationFn, RefetchFn, - FetchPolicy + FetchPolicy, } from "./types"; /** diff --git a/packages/nova-react/src/graphql/nova-graphql-provider.test.tsx b/packages/nova-react/src/graphql/nova-graphql-provider.test.tsx index 1cc601e..f7fcc88 100644 --- a/packages/nova-react/src/graphql/nova-graphql-provider.test.tsx +++ b/packages/nova-react/src/graphql/nova-graphql-provider.test.tsx @@ -2,7 +2,7 @@ * @jest-environment jsdom */ -import React from "react"; +import * as React from "react"; import type { NovaGraphQL } from "@nova/types"; import { render } from "@testing-library/react"; import { NovaGraphQLProvider, useNovaGraphQL } from "./nova-graphql-provider"; diff --git a/packages/nova-react/src/graphql/nova-graphql-provider.tsx b/packages/nova-react/src/graphql/nova-graphql-provider.tsx index 79c50e9..0ea9184 100644 --- a/packages/nova-react/src/graphql/nova-graphql-provider.tsx +++ b/packages/nova-react/src/graphql/nova-graphql-provider.tsx @@ -1,6 +1,6 @@ -import React from "react"; +import * as React from "react"; import type { NovaGraphQL } from "@nova/types"; -import invariant from "invariant"; +import * as invariant from "invariant"; // Initializing default with null to make sure providers are correctly placed in the tree const NovaGraphQLContext = React.createContext(null); diff --git a/scripts/config/jest.config.ts b/scripts/config/jest.config.ts index caeb437..aea7740 100644 --- a/scripts/config/jest.config.ts +++ b/scripts/config/jest.config.ts @@ -1,4 +1,4 @@ -import path from "path"; +import * as path from "path"; export default { preset: "ts-jest", diff --git a/tsconfig.json b/tsconfig.json index a6c5104..ffa7ef9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,8 +7,6 @@ "declarationMap": true, "strict": true, "skipLibCheck": true, - "allowSyntheticDefaultImports": true, - "esModuleInterop": true, "isolatedModules": true, "forceConsistentCasingInFileNames": true, }