Загрузка данных
git commit -am "TRADERADAR-14770: [FE] нижнее активное поле Короткой и Длинной позиции перекрываются подписями к границе графика"
(node:8380) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)
✔ Backed up original state in git stash (7c8af8c)
⚠ Running tasks for staged files...
❯ package.json — 52 files
❯ *.{ts,tsx} — 49 files
✔ npm run lint:fix
✖ npm run test:related -- [FAILED]
↓ *.{js,jsx,css,scss,md,html} — no files
↓ Skipped because of errors from tasks.
✔ Reverting to original state because of errors...
✔ Cleaning up temporary files...
✖ npm run test:related --:
> moex-chart@0.1.0 test:related
> jest --findRelatedTests --passWithNoTests C:/Users/ShkinderDV/moex-chart/jest.config.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/SeriesDrawingBase.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/SeriesDrawingBase.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawingTestUtils.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/CustomPriceAxis.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/CustomTimeAxis.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/axisLine.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/diapson.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/fibonacciRetracement.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/line.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/parallelChannel.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/ray.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/rectangle.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/regressionTrend.test.tsC:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/ruler.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/sliderPosition.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/text.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/traectory.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/drawings/volumeProfile.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/handles.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/helpers.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/shortcuts.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/__tests__/utils.test.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/axis/CustomPriceAxis.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/axis/CustomTimeAxis.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/axisLine/axisLine.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/axisLine/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/diapson/diapson.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/diapson/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/fibonacciRetracement/fibonacciRetracement.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/fibonacciRetracement/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/handles.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/helpers.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/line/lineDrawing.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/line/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/parallelChannel/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/parallelChannel/parallelChannel.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/ray/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/ray/ray.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/rectangle/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/rectangle/rectangle.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/regressionTrend/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/regressionTrend/regressionTrend.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/sliderPosition/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/sliderPosition/sliderPosition.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/traectory/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/traectory/traectory.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/volumeProfile/paneRenderer.ts C:/Users/ShkinderDV/moex-chart/src/core/Drawings/volumeProfile/volumeProfile.ts
jest-haste-map: duplicate manual mock found: styleMock
The following files share their name; please delete one of them:
* <rootDir>\__mocks__\styleMock.js
* <rootDir>\src\__mocks__\styleMock.cjs
PASS src/core/__tests__/Legend.test.ts (12.134 s)
PASS src/core/__tests__/ContainerManager.test.ts
PASS src/core/Drawings/__tests__/drawings/CustomPriceAxis.test.ts
PASS src/components/__tests__/ChartTooltip.test.tsx (13.273 s)
PASS src/components/__tests__/LegendComponent.test.tsx (13.265 s)
PASS src/core/Drawings/__tests__/handles.test.ts
PASS src/core/Drawings/__tests__/drawings/CustomTimeAxis.test.ts
PASS src/core/Drawings/__tests__/helpers.test.ts
PASS src/core/Drawings/__tests__/utils.test.ts
PASS src/core/Drawings/__tests__/drawings/traectory.test.ts
FAIL src/core/Drawings/__tests__/drawings/volumeProfile.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/volumeProfile/volumeProfile.ts:23:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/volumeProfile.test.ts:4:1)
FAIL src/core/Drawings/__tests__/drawings/text.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/text/text.ts:19:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/text.test.ts:4:1)
FAIL src/core/Drawings/__tests__/drawings/ruler.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/ruler/ruler.ts:22:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/ruler.test.ts:5:1)
FAIL src/core/Drawings/__tests__/shortcuts.test.ts
● Test suite failed to run
Jest encountered an unexpected token
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.
By default "node_modules" folder is ignored by transformers.
Here's what you can do:
• If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
• If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
• To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
• If you need a custom transformation specify a "transform" option in your config.
• If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.
You'll find more details and examples of these config options in the docs:
https://jestjs.io/docs/configuration
For information about custom transformations, see:
https://jestjs.io/docs/code-transformation
Details:
C:\Users\ShkinderDV\moex-chart\node_modules\lodash-es\cloneDeep.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import baseClone from './_baseClone.js';
^^^^^^
SyntaxError: Cannot use import statement outside a module
> 1 | import cloneDeep from 'lodash-es/cloneDeep';
| ^
2 |
3 | import { INDICATOR_COLOR_PALETTE } from '@src/theme';
4 | import { IndicatorConfig, IndicatorSerie, MASource, SerieOptionsWithColor } from '@src/types';
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
at Object.<anonymous> (src/utils/indicator.ts:1:1)
at Object.<anonymous> (src/utils/index.ts:9:1)
at Object.<anonymous> (src/types/defaults.ts:3:1)
at Object.<anonymous> (src/core/Drawings/axisLine/axisLine.ts:12:1)
at Object.<anonymous> (src/core/Drawings/axisLine/index.ts:1:1)
at Object.<anonymous> (src/constants/drawing.ts:1:1)
at Object.<anonymous> (src/constants/index.ts:3:1)
at Object.<anonymous> (src/core/Drawings/shortcuts.ts:1:1)
at Object.<anonymous> (src/core/Drawings/__tests__/shortcuts.test.ts:1:1)
FAIL src/core/Drawings/__tests__/drawings/sliderPosition.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/sliderPosition/sliderPosition.ts:24:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/sliderPosition.test.ts:4:1)
PASS src/core/Drawings/__tests__/drawings/ray.test.ts
FAIL src/core/Drawings/__tests__/drawings/regressionTrend.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/regressionTrend/regressionTrend.ts:12:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/regressionTrend.test.ts:3:1)
FAIL src/core/Drawings/__tests__/drawings/rectangle.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/rectangle/rectangle.ts:26:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/rectangle.test.ts:3:1)
FAIL src/core/Drawings/__tests__/drawings/fibonacciRetracement.test.ts
● Test suite failed to run
Jest encountered an unexpected token
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.
By default "node_modules" folder is ignored by transformers.
Here's what you can do:
• If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
• If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
• To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
• If you need a custom transformation specify a "transform" option in your config.
• If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.
You'll find more details and examples of these config options in the docs:
https://jestjs.io/docs/configuration
For information about custom transformations, see:
https://jestjs.io/docs/code-transformation
Details:
C:\Users\ShkinderDV\moex-chart\node_modules\lodash-es\cloneDeep.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import baseClone from './_baseClone.js';
^^^^^^
SyntaxError: Cannot use import statement outside a module
> 1 | import cloneDeep from 'lodash-es/cloneDeep';
| ^
2 |
3 | import { t } from '@src/translations';
4 |
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
at Object.<anonymous> (src/core/Drawings/fibonacciRetracement/settings.ts:1:1)
at Object.<anonymous> (src/core/Drawings/fibonacciRetracement/fibonacciRetracement.ts:28:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/fibonacciRetracement.test.ts:1:1)
PASS src/core/Drawings/__tests__/drawings/parallelChannel.test.ts
PASS src/core/Drawings/__tests__/drawings/line.test.ts
PASS src/core/Drawings/__tests__/drawings/diapson.test.ts
PASS src/core/Drawings/__tests__/drawings/axisLine.test.ts
PASS src/core/Drawings/__tests__/SeriesDrawingBase.test.ts
Summary of all failing tests
FAIL src/core/Drawings/__tests__/drawings/volumeProfile.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/volumeProfile/volumeProfile.ts:23:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/volumeProfile.test.ts:4:1)
FAIL src/core/Drawings/__tests__/drawings/text.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/text/text.ts:19:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/text.test.ts:4:1)
FAIL src/core/Drawings/__tests__/drawings/ruler.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/ruler/ruler.ts:22:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/ruler.test.ts:5:1)
FAIL src/core/Drawings/__tests__/shortcuts.test.ts
● Test suite failed to run
Jest encountered an unexpected token
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.
By default "node_modules" folder is ignored by transformers.
Here's what you can do:
• If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
• If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
• To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
• If you need a custom transformation specify a "transform" option in your config.
• If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.
You'll find more details and examples of these config options in the docs:
https://jestjs.io/docs/configuration
For information about custom transformations, see:
https://jestjs.io/docs/code-transformation
Details:
C:\Users\ShkinderDV\moex-chart\node_modules\lodash-es\cloneDeep.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import baseClone from './_baseClone.js';
^^^^^^
SyntaxError: Cannot use import statement outside a module
> 1 | import cloneDeep from 'lodash-es/cloneDeep';
| ^
2 |
3 | import { INDICATOR_COLOR_PALETTE } from '@src/theme';
4 | import { IndicatorConfig, IndicatorSerie, MASource, SerieOptionsWithColor } from '@src/types';
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
at Object.<anonymous> (src/utils/indicator.ts:1:1)
at Object.<anonymous> (src/utils/index.ts:9:1)
at Object.<anonymous> (src/types/defaults.ts:3:1)
at Object.<anonymous> (src/core/Drawings/axisLine/axisLine.ts:12:1)
at Object.<anonymous> (src/core/Drawings/axisLine/index.ts:1:1)
at Object.<anonymous> (src/constants/drawing.ts:1:1)
at Object.<anonymous> (src/constants/index.ts:3:1)
at Object.<anonymous> (src/core/Drawings/shortcuts.ts:1:1)
at Object.<anonymous> (src/core/Drawings/__tests__/shortcuts.test.ts:1:1)
FAIL src/core/Drawings/__tests__/drawings/sliderPosition.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/sliderPosition/sliderPosition.ts:24:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/sliderPosition.test.ts:4:1)
FAIL src/core/Drawings/__tests__/drawings/regressionTrend.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/regressionTrend/regressionTrend.ts:12:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/regressionTrend.test.ts:3:1)
FAIL src/core/Drawings/__tests__/drawings/rectangle.test.ts
● Test suite failed to run
TypeError: Cannot read properties of undefined (reading 'DOW_DD_MM_YYYY_SLASH')
5 | export const Defaults: ChartOptionsModel = {
6 | timeFormat: '24h',
> 7 | dateFormat: DateFormat.DOW_DD_MM_YYYY_SLASH,
| ^
8 | showTime: true,
9 | };
10 | export const DEFAULT_TOOLTIPS_CONFIG: TooltipConfig = {
at Object.<anonymous> (src/types/defaults.ts:7:26)
at Object.<anonymous> (src/core/Drawings/rectangle/rectangle.ts:26:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/rectangle.test.ts:3:1)
FAIL src/core/Drawings/__tests__/drawings/fibonacciRetracement.test.ts
● Test suite failed to run
Jest encountered an unexpected token
Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not configured to support such syntax.
Out of the box Jest supports Babel, which will be used to transform your files into valid JS based on your Babel configuration.
By default "node_modules" folder is ignored by transformers.
Here's what you can do:
• If you are trying to use ECMAScript Modules, see https://jestjs.io/docs/ecmascript-modules for how to enable it.
• If you are trying to use TypeScript, see https://jestjs.io/docs/getting-started#using-typescript
• To have some of your "node_modules" files transformed, you can specify a custom "transformIgnorePatterns" in your config.
• If you need a custom transformation specify a "transform" option in your config.
• If you simply want to mock your non-JS modules (e.g. binary assets) you can stub them out with the "moduleNameMapper" config option.
You'll find more details and examples of these config options in the docs:
https://jestjs.io/docs/configuration
For information about custom transformations, see:
https://jestjs.io/docs/code-transformation
Details:
C:\Users\ShkinderDV\moex-chart\node_modules\lodash-es\cloneDeep.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import baseClone from './_baseClone.js';
^^^^^^
SyntaxError: Cannot use import statement outside a module
> 1 | import cloneDeep from 'lodash-es/cloneDeep';
| ^
2 |
3 | import { t } from '@src/translations';
4 |
at Runtime.createScriptFromCode (node_modules/jest-runtime/build/index.js:1505:14)
at Object.<anonymous> (src/core/Drawings/fibonacciRetracement/settings.ts:1:1)
at Object.<anonymous> (src/core/Drawings/fibonacciRetracement/fibonacciRetracement.ts:28:1)
at Object.<anonymous> (src/core/Drawings/__tests__/drawings/fibonacciRetracement.test.ts:1:1)
Test Suites: 8 failed, 16 passed, 24 total
Tests: 277 passed, 277 total
Snapshots: 0 total
Time: 23.701 s
Ran all test suites related to files matching /C:\\Users\\ShkinderDV\\moex-chart\\jest.config.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\SeriesDrawingBase.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\SeriesDrawingBase.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawingTestUtils.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\CustomPriceAxis.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\CustomTimeAxis.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\axisLine.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\diapson.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\fibonacciRetracement.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\line.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\parallelChannel.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\ray.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\rectangle.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\regressionTrend.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\ruler.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\sliderPosition.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\text.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\traectory.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\drawings\\volumeProfile.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\handles.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\helpers.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\shortcuts.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\__tests__\\utils.test.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\axis\\CustomPriceAxis.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\axis\\CustomTimeAxis.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\axisLine\\axisLine.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\axisLine\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\diapson\\diapson.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\diapson\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\fibonacciRetracement\\fibonacciRetracement.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\fibonacciRetracement\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\handles.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\helpers.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\line\\lineDrawing.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\line\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\parallelChannel\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\parallelChannel\\parallelChannel.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\ray\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\ray\\ray.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\rectangle\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\rectangle\\rectangle.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\regressionTrend\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\regressionTrend\\regressionTrend.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\sliderPosition\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\sliderPosition\\sliderPosition.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\traectory\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\traectory\\traectory.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\volumeProfile\\paneRenderer.ts|C:\\Users\\ShkinderDV\\moex-chart\\src\\core\\Drawings\\volumeProfile\\volumeProfile.ts/i.
husky - pre-commit script failed (code 1)