Skip to content

Commit 20ff0f4

Browse files
fixes jest tsconfig
1 parent 8f318ff commit 20ff0f4

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
diagnostics: {
1717
warnOnly: true
1818
},
19-
// tsconfig: '<rootDir>/test/jest/tsconfig.json'
19+
tsconfig: '<rootDir>/test/jest/tsconfig.json'
2020
}
2121
},
2222
reporters: [

test/jest/loginCallback.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* See the License for the specific language governing permissions and limitations under the License.
1111
*/
1212

13-
import * as React from 'react';
13+
import React from 'react';
1414
import { mount } from 'enzyme';
1515
import { render, screen } from '@testing-library/react';
1616
import LoginCallback from '../../src/LoginCallback';

test/jest/setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* See the License for the specific language governing permissions and limitations under the License.
1111
*/
1212

13-
import * as Enzyme from 'enzyme';
14-
import * as Adapter from 'enzyme-adapter-react-16';
13+
import Enzyme from 'enzyme';
14+
import Adapter from 'enzyme-adapter-react-16';
1515

1616
Enzyme.configure({ adapter: new Adapter() });
1717

test/jest/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"compilerOptions": {
33
"skipLibCheck": true,
4-
"jsx": "react"
4+
"jsx": "react",
5+
"esModuleInterop": true
56
}
67
}

0 commit comments

Comments
 (0)