Skip to content

Commit f1ada6f

Browse files
leondt1xueren.dt
andauthored
chore(ava): rewrite all import path to relative path (#843)
Co-authored-by: xueren.dt <xueren.dt@antgroup.com>
1 parent 615d884 commit f1ada6f

54 files changed

Lines changed: 98 additions & 115 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

__tests__/unit/extract/feature/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import {
88
isInterval,
99
isDiscrete,
1010
isNominal,
11-
} from '@ava/extract/features';
12-
import { NumberColumnFeature, StringColumnFeature, DateColumnFeature } from '@ava/types/data';
11+
} from '../../../../src/extract/features';
12+
import { NumberColumnFeature, StringColumnFeature, DateColumnFeature } from '../../../../src/types/data';
1313

1414
describe('test analyze field', () => {
1515
test('analyze integer number', () => {

__tests__/unit/extract/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import _ from 'lodash';
2-
import { extractData } from '@ava/extract';
2+
import { extractData } from '../../../src/extract';
33

44
const EXTRACT_MOCK_RESULT = [
55
{
@@ -18,7 +18,7 @@ const EXTRACT_MOCK_RESULT = [
1818
},
1919
];
2020

21-
jest.mock('@ava/extract/extract', () => ({
21+
jest.mock('../../../src/extract/extract', () => ({
2222
__esModule: true,
2323
extract: async () => {
2424
return EXTRACT_MOCK_RESULT;

__tests__/unit/extract/infer/infer.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { matchDataShape } from '@ava/extract/infer';
2-
import { DATA_SHAPE } from '@ava/extract/constants';
1+
import { matchDataShape } from '../../../../src/extract/infer';
2+
import { DATA_SHAPE } from '../../../../src/extract/constants';
33

44
describe('test matchDataShape', () => {
55
const listData1 = [

__tests__/unit/extract/model/DataStore.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DataStore } from '@ava/extract/model/DataStore';
1+
import { DataStore } from '../../../../src/extract/model/DataStore';
22

33
describe('DataStore', () => {
44
const data = [

__tests__/unit/utils/aggr.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AggregatorMap, aggregate, aggregateWithMeasures, aggregateWithSeries } from '@ava/utils/aggregate';
1+
import { AggregatorMap, aggregate, aggregateWithMeasures, aggregateWithSeries } from '../../../src/utils/aggregate';
22

33
const data = [
44
{ gender: 'M', count: 40, class: 'class1', grade: 'grade1', score: 7 },

__tests__/unit/utils/common.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { unique, range, assert, isParentChild } from '@ava/utils/common';
1+
import { unique, range, assert, isParentChild } from '../../../src/utils/common';
22

33
test('unique', () => {
44
const data = [1, 2, 3, 3, 2, 1];

__tests__/unit/utils/isType.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
getIsoDatePatterns,
1717
getIsoTimePatterns,
1818
parseIsoDateString,
19-
} from '@ava/utils/isType';
19+
} from '../../../src/utils/isType';
2020

2121
test('isNull', () => {
2222
const data = 'null';

__tests__/unit/utils/statictics.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import '@testing-library/jest-dom/extend-expect';
22
import { isEqual } from 'lodash';
33

4-
import { isArray, isNumber, nOnes, range } from '@ava/utils';
4+
import { isArray, isNumber, nOnes, range } from '../../../src/utils';
55
import {
66
valid,
77
missing,
@@ -39,7 +39,7 @@ import {
3939
weightedLinearRegression,
4040
lowess,
4141
pcorrtest,
42-
} from '@ava/utils/statistics';
42+
} from '../../../src/utils/statistics';
4343

4444
const threshold = 1e-3;
4545
/** whether two arrays are the same within a certain precision */

playground/src/examples/advise/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useEffect, useState } from 'react';
22

33
import { Input, Button, Space, Card, message } from 'antd';
4-
import { Advisor, bindRenderer } from '@antv/ava';
4+
import { Advisor, bindRenderer } from '../../../../src';
55
import { render } from '../../utils';
66

77
// 创建 advisor 实例并为该实例绑定渲染器

playground/src/examples/advise/multiple.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useEffect, useState } from 'react';
22

33
import { Button, Space, Card } from 'antd';
4-
import { Advisor, bindRenderer } from '@antv/ava';
4+
import { Advisor, bindRenderer } from '../../../../src';
55
import { render } from '../../utils';
66

77
// 创建 advisor 实例并为该实例绑定渲染器

0 commit comments

Comments
 (0)