@myinterview/widget-react 1.0.33-beta-9bea4cb → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +8466 -8817
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{App.d.ts → types/App.d.ts} +0 -0
- package/dist/esm/{components → types/components}/CountDown.d.ts +0 -0
- package/dist/esm/{components → types/components}/Counter.d.ts +0 -0
- package/dist/esm/{components → types/components}/DeviceSelector.d.ts +2 -3
- package/dist/esm/{components → types/components}/DeviceSelectorList.d.ts +0 -0
- package/dist/esm/{components → types/components}/DeviceSelectorListNative.d.ts +0 -0
- package/dist/esm/{components → types/components}/Error.d.ts +0 -0
- package/dist/esm/{components → types/components}/ErrorBoundaries.d.ts +0 -0
- package/dist/esm/{components → types/components}/Errors.d.ts +0 -0
- package/dist/esm/{components → types/components}/Explanation.d.ts +0 -0
- package/dist/esm/{components → types/components}/Footer.d.ts +0 -0
- package/dist/esm/{components → types/components}/Header.d.ts +0 -0
- package/dist/esm/{components → types/components}/InnerView.d.ts +0 -1
- package/dist/esm/{components → types/components}/Main.d.ts +1 -1
- package/dist/esm/{components → types/components}/OuterView.d.ts +0 -0
- package/dist/esm/{components → types/components}/PermissionSteps.d.ts +0 -0
- package/dist/esm/{components → types/components}/PracticeModeInfo.d.ts +0 -0
- package/dist/esm/{components → types/components}/PreviewItem.d.ts +0 -1
- package/dist/esm/{components → types/components}/PreviewList.d.ts +0 -1
- package/dist/esm/{components → types/components}/Question.d.ts +0 -0
- package/dist/esm/{components → types/components}/QuestionItem.d.ts +0 -0
- package/dist/esm/{components → types/components}/QuestionsList.d.ts +0 -0
- package/dist/esm/{components → types/components}/RecorderModal.d.ts +0 -0
- package/dist/esm/{components → types/components}/Setup.d.ts +0 -0
- package/dist/esm/{components → types/components}/SetupChecks.d.ts +0 -0
- package/dist/esm/{components → types/components}/SliderModal.d.ts +0 -0
- package/dist/esm/{components → types/components}/TopTips.d.ts +0 -0
- package/dist/esm/{components → types/components}/Upload.d.ts +0 -0
- package/dist/esm/{components → types/components}/VideoCamera.d.ts +0 -1
- package/dist/esm/{components → types/components}/VideoQuestion.d.ts +0 -0
- package/dist/esm/{components → types/components}/VideoTimeBar.d.ts +0 -0
- package/dist/esm/{components → types/components}/WelcomePage.d.ts +0 -0
- package/dist/esm/{components → types/components}/Widget.d.ts +1 -1
- package/dist/esm/{components → types/components}/icons/ClockIcon.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/Loading.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/NoCameraMic.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/PlayIcon.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/Retake.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/RotateScreenIcon.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/Loader.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/MicrophoneIndicator.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/MinimizeButton.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/PracticeMode.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/Progress.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/QuestionDuration.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/QuestionNumber.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/RecordingButton.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/RotateScreen.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/Signal.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/StartNowButton.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/StartRecordingButton.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/StopRecordingButton.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/UnsupportedModal.d.ts +0 -0
- package/dist/esm/{config → types/config}/index.d.ts +0 -0
- package/dist/esm/{config → types/config}/local.env.d.ts +0 -0
- package/dist/esm/{config → types/config}/prod.env.d.ts +0 -0
- package/dist/esm/{config → types/config}/staging.env.d.ts +0 -0
- package/dist/esm/{i18n → types/i18n}/config.d.ts +0 -0
- package/dist/esm/{index.d.ts → types/index.d.ts} +0 -0
- package/dist/esm/{interfaces → types/interfaces}/candidateInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/candidateSessionInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/companyInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/configInterface.d.ts +1 -0
- package/dist/esm/{interfaces → types/interfaces}/jobInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/microphoneInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/networkInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/previewInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/recorderInterface.d.ts +1 -2
- package/dist/esm/{interfaces → types/interfaces}/storageInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/uploaderInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/videoInterface.d.ts +1 -1
- package/dist/esm/{interfaces → types/interfaces}/widgetInterface.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/accUploaderMachine.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/accWidgetMachine.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/microphoneMachine.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/networkMachine.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/previewMachine.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/recorderMachineV2.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/storageMachine.d.ts +0 -0
- package/dist/esm/{reportWebVitals.d.ts → types/reportWebVitals.d.ts} +0 -0
- package/dist/esm/{services → types/services}/axiosInstances.service.d.ts +0 -0
- package/dist/esm/{services → types/services}/s3.service.d.ts +0 -0
- package/dist/esm/{services → types/services}/session.service.d.ts +0 -0
- package/dist/esm/{services → types/services}/speedTest.service.d.ts +0 -0
- package/dist/esm/{services → types/services}/video.service.d.ts +0 -0
- package/dist/esm/{setupTests.d.ts → types/setupTests.d.ts} +0 -0
- package/dist/esm/{utils → types/utils}/authToken.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/constants.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/debug.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/device.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/errors.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/formatters.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/messages.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/practiceQuestions.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/recorderErrors.utils.d.ts +0 -1
- package/dist/esm/{utils → types/utils}/sentry.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/statusCodes.utils.d.ts +0 -0
- package/dist/index.d.ts +2 -1
- package/package.json +10 -115
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { mediaDeviceType } from '../interfaces/recorderInterface';
|
|
3
3
|
export interface IDeviceSelectorProps {
|
|
4
4
|
handleDeviceChange: (type?: mediaDeviceType, id?: string) => void;
|
|
@@ -6,6 +6,5 @@ export interface IDeviceSelectorProps {
|
|
|
6
6
|
videoDevices?: MediaDeviceInfo[];
|
|
7
7
|
selectedAudioDevice?: MediaDeviceInfo;
|
|
8
8
|
selectedVideoDevice?: MediaDeviceInfo;
|
|
9
|
-
myinterviewRef: React.RefObject<HTMLDivElement>;
|
|
10
9
|
}
|
|
11
|
-
export declare const DeviceSelector: ({ handleDeviceChange, videoDevices, audioDevices, selectedAudioDevice, selectedVideoDevice,
|
|
10
|
+
export declare const DeviceSelector: ({ handleDeviceChange, videoDevices, audioDevices, selectedAudioDevice, selectedVideoDevice, }: IDeviceSelectorProps) => JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -9,7 +9,6 @@ interface IProps extends IWidgetMachineProps {
|
|
|
9
9
|
onCloseSliderModal: () => void;
|
|
10
10
|
onRecorderRetry: () => void;
|
|
11
11
|
onReInitRecorder: () => void;
|
|
12
|
-
myinterviewRef: React.RefObject<HTMLDivElement>;
|
|
13
12
|
}
|
|
14
13
|
export declare const InnerView: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLVideoElement>>;
|
|
15
14
|
export {};
|
|
@@ -3,8 +3,8 @@ import { IWidgetConfig } from '../interfaces/configInterface';
|
|
|
3
3
|
interface IProps {
|
|
4
4
|
widgetConfig: IWidgetConfig;
|
|
5
5
|
setShouldShowWaterMark: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
|
-
myinterviewRef: React.RefObject<HTMLDivElement>;
|
|
7
6
|
isWidgetMinimized: boolean;
|
|
7
|
+
onMinimize: () => void;
|
|
8
8
|
}
|
|
9
9
|
export declare const Main: React.FC<IProps>;
|
|
10
10
|
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -24,7 +24,6 @@ interface IProps extends IDeviceSelectorProps {
|
|
|
24
24
|
isCountDown: boolean;
|
|
25
25
|
countdown: number;
|
|
26
26
|
isQuestionDisplayed: boolean;
|
|
27
|
-
myinterviewRef: React.RefObject<HTMLDivElement>;
|
|
28
27
|
}
|
|
29
28
|
export declare const VideoCamera: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLVideoElement>>;
|
|
30
29
|
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import '../assets/styles/font.scss';
|
|
3
2
|
import { IClientWidgetConfig } from '../interfaces/configInterface';
|
|
3
|
+
import '../assets/styles/global.scss';
|
|
4
4
|
import { getToken } from '../utils/authToken.utils';
|
|
5
5
|
export declare const Widget: React.FC<IClientWidgetConfig>;
|
|
6
6
|
export { getToken };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -124,8 +124,7 @@ export declare const enum GUARDS {
|
|
|
124
124
|
IS_NOT_ALLOWED_ERROR = "isNotAllowedError",
|
|
125
125
|
IS_ERROR_WITH_WRONG_PARAMS = "isErrorWithWrongParams",
|
|
126
126
|
IS_AUTO_START = "isAutoStart",
|
|
127
|
-
IS_QUALITY_CHANGED = "isQualityChanged"
|
|
128
|
-
IS_VIDEO_CORRUPTED = "isVideoCorrupted"
|
|
127
|
+
IS_QUALITY_CHANGED = "isQualityChanged"
|
|
129
128
|
}
|
|
130
129
|
export declare const mediaConstrains: {
|
|
131
130
|
hd: {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ interface IVideo {
|
|
|
92
92
|
quality?: string;
|
|
93
93
|
referrer?: string;
|
|
94
94
|
cvUrl?: string;
|
|
95
|
-
videos
|
|
95
|
+
videos?: IVideoFile[];
|
|
96
96
|
processTime?: number;
|
|
97
97
|
files?: string[];
|
|
98
98
|
personalInfo?: Record<string, string>;
|
|
@@ -118,6 +118,7 @@ interface IConfig {
|
|
|
118
118
|
onWidgetClicked?: () => void;
|
|
119
119
|
onFinish?: (data: IOnFinish) => void;
|
|
120
120
|
onError?: (data: IOnError) => void;
|
|
121
|
+
onWidgetClose?: () => void;
|
|
121
122
|
openAnimation?: boolean;
|
|
122
123
|
debug?: boolean;
|
|
123
124
|
practiceQuestions?: IQuestion[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myinterview/widget-react",
|
|
3
|
-
"version": "1.0.33
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "myInterview widget v3",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"files": [
|
|
@@ -8,80 +8,33 @@
|
|
|
8
8
|
],
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@babel/core": "^7.16.0",
|
|
12
11
|
"@cloudflare/stream-react": "^1.8.0",
|
|
13
|
-
"@myinterview/component-library": "^1.0.
|
|
14
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
12
|
+
"@myinterview/component-library": "^1.0.22",
|
|
15
13
|
"@sentry/react": "^7.7.0",
|
|
16
14
|
"@sentry/tracing": "^7.7.0",
|
|
17
|
-
"@svgr/webpack": "^5.5.0",
|
|
18
15
|
"@xstate/react": "^3.0.1",
|
|
19
16
|
"axios": "^0.27.2",
|
|
20
|
-
"babel-jest": "^27.4.2",
|
|
21
|
-
"babel-loader": "^8.2.3",
|
|
22
|
-
"babel-plugin-named-asset-import": "^0.3.8",
|
|
23
|
-
"babel-preset-react-app": "^10.0.1",
|
|
24
|
-
"bfj": "^7.0.2",
|
|
25
|
-
"browserslist": "^4.18.1",
|
|
26
|
-
"camelcase": "^6.2.1",
|
|
27
|
-
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
28
17
|
"crypto-js": "^4.1.1",
|
|
29
|
-
"css-loader": "^6.5.1",
|
|
30
|
-
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
31
18
|
"detect-incognito": "^1.0.0",
|
|
32
|
-
"dotenv": "^10.0.0",
|
|
33
|
-
"dotenv-expand": "^5.1.0",
|
|
34
|
-
"eslint": "^8.3.0",
|
|
35
|
-
"eslint-config-react-app": "^7.0.0",
|
|
36
|
-
"eslint-webpack-plugin": "^3.1.1",
|
|
37
|
-
"file-loader": "^6.2.0",
|
|
38
19
|
"fix-webm-duration": "^1.0.5",
|
|
39
|
-
"fs-extra": "^10.0.0",
|
|
40
|
-
"html-webpack-plugin": "^5.5.0",
|
|
41
20
|
"i18next": "^21.8.16",
|
|
42
|
-
"identity-obj-proxy": "^3.0.0",
|
|
43
|
-
"jest": "^27.4.3",
|
|
44
|
-
"jest-resolve": "^27.4.2",
|
|
45
|
-
"jest-watch-typeahead": "^1.0.0",
|
|
46
|
-
"mini-css-extract-plugin": "^2.4.5",
|
|
47
21
|
"platform": "^1.3.6",
|
|
48
|
-
"postcss": "^8.4.4",
|
|
49
|
-
"postcss-flexbugs-fixes": "^5.0.2",
|
|
50
|
-
"postcss-loader": "^6.2.1",
|
|
51
|
-
"postcss-normalize": "^10.0.1",
|
|
52
|
-
"postcss-preset-env": "^7.0.1",
|
|
53
|
-
"prompts": "^2.4.2",
|
|
54
|
-
"react-app-polyfill": "^3.0.0",
|
|
55
|
-
"react-dev-utils": "^12.0.0",
|
|
56
22
|
"react-i18next": "^11.18.5",
|
|
57
23
|
"react-player": "^2.10.1",
|
|
58
|
-
"react-refresh": "^0.11.0",
|
|
59
|
-
"react-shadow": "^19.0.3",
|
|
60
24
|
"react-use-intercom": "^2.0.0",
|
|
61
|
-
"resolve": "^1.20.0",
|
|
62
|
-
"resolve-url-loader": "^4.0.0",
|
|
63
25
|
"rxjs": "^7.5.7",
|
|
64
|
-
"sass-loader": "^12.3.0",
|
|
65
|
-
"semver": "^7.3.5",
|
|
66
|
-
"source-map-loader": "^3.0.0",
|
|
67
|
-
"style-loader": "^3.3.1",
|
|
68
|
-
"tailwindcss": "^3.0.2",
|
|
69
|
-
"terser-webpack-plugin": "^5.2.5",
|
|
70
26
|
"web-vitals": "^2.1.4",
|
|
71
|
-
"webpack": "^5.64.4",
|
|
72
|
-
"webpack-dev-server": "^4.6.0",
|
|
73
|
-
"webpack-manifest-plugin": "^4.0.2",
|
|
74
|
-
"workbox-webpack-plugin": "^6.4.1",
|
|
75
27
|
"xstate": "^4.33.2"
|
|
76
28
|
},
|
|
77
29
|
"scripts": {
|
|
78
|
-
"start": "REACT_APP_ENV=local HTTPS=true
|
|
79
|
-
"start-prod": "REACT_APP_ENV=prod HTTPS=true
|
|
80
|
-
"start-staging": "REACT_APP_ENV=staging HTTPS=true
|
|
81
|
-
"build": "
|
|
30
|
+
"start": "REACT_APP_ENV=local HTTPS=true react-scripts start",
|
|
31
|
+
"start-prod": "REACT_APP_ENV=prod HTTPS=true react-scripts start",
|
|
32
|
+
"start-staging": "REACT_APP_ENV=staging HTTPS=true react-scripts start",
|
|
33
|
+
"build": "react-scripts build",
|
|
82
34
|
"publish-prod": "REACT_APP_ENV=prod rollup -c && npm publish",
|
|
83
35
|
"publish-staging": "REACT_APP_ENV=staging rollup -c && npm publish --tag beta",
|
|
84
|
-
"test": "
|
|
36
|
+
"test": "react-scripts test",
|
|
37
|
+
"eject": "react-scripts eject"
|
|
85
38
|
},
|
|
86
39
|
"eslintConfig": {
|
|
87
40
|
"extends": [
|
|
@@ -102,7 +55,7 @@
|
|
|
102
55
|
]
|
|
103
56
|
},
|
|
104
57
|
"devDependencies": {
|
|
105
|
-
"@rollup/plugin-babel": "^6.0.
|
|
58
|
+
"@rollup/plugin-babel": "^6.0.3",
|
|
106
59
|
"@rollup/plugin-commonjs": "^22.0.1",
|
|
107
60
|
"@rollup/plugin-json": "^4.1.0",
|
|
108
61
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
@@ -127,16 +80,14 @@
|
|
|
127
80
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
128
81
|
"eslint-plugin-react": "^7.29.4",
|
|
129
82
|
"eslint-plugin-react-hooks": "^4.4.0",
|
|
130
|
-
"raw-loader": "^4.0.2",
|
|
131
83
|
"react": "^18.0.0",
|
|
132
84
|
"react-dom": "^18.0.0",
|
|
85
|
+
"react-scripts": "5.0.0",
|
|
133
86
|
"rollup": "^2.75.7",
|
|
134
|
-
"rollup-plugin-delete": "^2.0.0",
|
|
135
87
|
"rollup-plugin-dts": "^4.2.2",
|
|
136
88
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
137
89
|
"rollup-plugin-postcss": "^4.0.2",
|
|
138
90
|
"sass": "^1.50.0",
|
|
139
|
-
"sass-to-string": "^1.6.3",
|
|
140
91
|
"typescript": "^4.7.4",
|
|
141
92
|
"webpack": "^5.73.0",
|
|
142
93
|
"webpack-cli": "^4.10.0"
|
|
@@ -145,61 +96,5 @@
|
|
|
145
96
|
"@testing-library/react": "^12.1.5 || ^13.4.0",
|
|
146
97
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
147
98
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
148
|
-
},
|
|
149
|
-
"jest": {
|
|
150
|
-
"roots": [
|
|
151
|
-
"<rootDir>/src"
|
|
152
|
-
],
|
|
153
|
-
"collectCoverageFrom": [
|
|
154
|
-
"src/**/*.{js,jsx,ts,tsx}",
|
|
155
|
-
"!src/**/*.d.ts"
|
|
156
|
-
],
|
|
157
|
-
"setupFiles": [
|
|
158
|
-
"react-app-polyfill/jsdom"
|
|
159
|
-
],
|
|
160
|
-
"setupFilesAfterEnv": [
|
|
161
|
-
"<rootDir>/src/setupTests.ts"
|
|
162
|
-
],
|
|
163
|
-
"testMatch": [
|
|
164
|
-
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
165
|
-
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
166
|
-
],
|
|
167
|
-
"testEnvironment": "jsdom",
|
|
168
|
-
"transform": {
|
|
169
|
-
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
|
|
170
|
-
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
171
|
-
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
172
|
-
},
|
|
173
|
-
"transformIgnorePatterns": [
|
|
174
|
-
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
|
|
175
|
-
"^.+\\.module\\.(css|sass|scss)$"
|
|
176
|
-
],
|
|
177
|
-
"modulePaths": [],
|
|
178
|
-
"moduleNameMapper": {
|
|
179
|
-
"^react-native$": "react-native-web",
|
|
180
|
-
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
181
|
-
},
|
|
182
|
-
"moduleFileExtensions": [
|
|
183
|
-
"web.js",
|
|
184
|
-
"js",
|
|
185
|
-
"web.ts",
|
|
186
|
-
"ts",
|
|
187
|
-
"web.tsx",
|
|
188
|
-
"tsx",
|
|
189
|
-
"json",
|
|
190
|
-
"web.jsx",
|
|
191
|
-
"jsx",
|
|
192
|
-
"node"
|
|
193
|
-
],
|
|
194
|
-
"watchPlugins": [
|
|
195
|
-
"jest-watch-typeahead/filename",
|
|
196
|
-
"jest-watch-typeahead/testname"
|
|
197
|
-
],
|
|
198
|
-
"resetMocks": true
|
|
199
|
-
},
|
|
200
|
-
"babel": {
|
|
201
|
-
"presets": [
|
|
202
|
-
"react-app"
|
|
203
|
-
]
|
|
204
99
|
}
|
|
205
100
|
}
|