diff --git a/jest.config.js b/jest.config.js index 5b002537..66b02223 100644 --- a/jest.config.js +++ b/jest.config.js @@ -16,7 +16,7 @@ module.exports = { diagnostics: { warnOnly: true }, - // tsconfig: '/test/jest/tsconfig.json' + tsconfig: '/test/jest/tsconfig.json' } }, reporters: [ diff --git a/test/jest/loginCallback.test.tsx b/test/jest/loginCallback.test.tsx index 2b72dc37..79901ffa 100644 --- a/test/jest/loginCallback.test.tsx +++ b/test/jest/loginCallback.test.tsx @@ -10,7 +10,7 @@ * See the License for the specific language governing permissions and limitations under the License. */ -import * as React from 'react'; +import React from 'react'; import { mount } from 'enzyme'; import { render, screen } from '@testing-library/react'; import LoginCallback from '../../src/LoginCallback'; diff --git a/test/jest/setup.ts b/test/jest/setup.ts index 84baa0c3..4ed7a977 100644 --- a/test/jest/setup.ts +++ b/test/jest/setup.ts @@ -10,8 +10,8 @@ * See the License for the specific language governing permissions and limitations under the License. */ -import * as Enzyme from 'enzyme'; -import * as Adapter from 'enzyme-adapter-react-16'; +import Enzyme from 'enzyme'; +import Adapter from 'enzyme-adapter-react-16'; Enzyme.configure({ adapter: new Adapter() }); diff --git a/test/jest/tsconfig.json b/test/jest/tsconfig.json index 9c7eac4e..ad281af8 100644 --- a/test/jest/tsconfig.json +++ b/test/jest/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { "skipLibCheck": true, - "jsx": "react" + "jsx": "react", + "esModuleInterop": true } } \ No newline at end of file