Skip to content

Commit c225ef3

Browse files
committed
[tests] Import from package, not path
1 parent 0c42139 commit c225ef3

24 files changed

+30
-59
lines changed

test/perf/benchmark.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {TablesSchema, createStore} from '../../lib/debug/tinybase';
1+
import {TablesSchema, createStore} from 'tinybase/debug';
22
import {µs} from './common';
33

44
const SIZE = 50;

test/perf/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable @typescript-eslint/ban-ts-comment, jest/no-export */
2-
import {Row, Table, Tables, Values} from '../../lib/debug/tinybase';
2+
import {Row, Table, Tables, Values} from 'tinybase/debug';
33
import {blue, plot, red, yellow} from 'asciichart';
44
import {performance} from 'perf_hooks';
55

test/perf/create.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
createMetrics,
55
createQueries,
66
createStore,
7-
} from '../../lib/debug/tinybase';
7+
} from 'tinybase/debug';
88
import {
99
getNCells,
1010
getNRows,

test/perf/grow.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Store, createStore} from '../../lib/debug/tinybase';
1+
import {Store, createStore} from 'tinybase/debug';
22
import {repeatRows} from './common';
33

44
let store: Store;

test/perf/indexes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Store, createIndexes, createStore} from '../../lib/debug/tinybase';
1+
import {Store, createIndexes, createStore} from 'tinybase/debug';
22
import {repeatRows} from './common';
33

44
let store: Store;

test/perf/metrics.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Store, createMetrics, createStore} from '../../lib/debug/tinybase';
1+
import {Store, createMetrics, createStore} from 'tinybase/debug';
22
import {repeatRows} from './common';
33

44
let store: Store;

test/perf/queries.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Store, createQueries, createStore} from '../../lib/debug/tinybase';
1+
import {Store, createQueries, createStore} from 'tinybase/debug';
22
import {repeatRows} from './common';
33

44
let store: Store;

test/perf/relationships.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import {
2-
Store,
3-
createRelationships,
4-
createStore,
5-
} from '../../lib/debug/tinybase';
1+
import {Store, createRelationships, createStore} from 'tinybase/debug';
62
import {repeatRows} from './common';
73

84
let store: Store;

test/unit/checkpoints.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
Values,
77
createCheckpoints,
88
createStore,
9-
} from '../../lib/debug/tinybase';
9+
} from 'tinybase/debug';
1010
import {
1111
CheckpointsListener,
1212
createCheckpointsListener,

test/unit/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
Queries,
1818
Relationships,
1919
Store,
20-
} from '../../lib/debug/tinybase';
20+
} from 'tinybase/debug';
2121

2222
type IdObj<Value> = {[id: string]: Value};
2323
type IdObj2<Value> = IdObj<{[id: string]: Value}>;

0 commit comments

Comments
 (0)