Skip to content

Commit b0b8504

Browse files
committed
Fix test imports and import/export spec syntax
1 parent 5e597cf commit b0b8504

6 files changed

Lines changed: 7 additions & 0 deletions

File tree

apps/react-trrack-example/src/app/store/trrack.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
22
import { initializeTrrack, Registry } from '@trrack/core';
33
import { useEffect, useMemo, useState } from 'react';
4+
import { describe, expect, it } from 'vitest';
45

56
function setup() {
67
const registry = Registry.create<'count'>();

packages/core/tests/current-change.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it, vi } from 'vitest';
12
import { initializeTrrack } from '../src/provenance/trrack';
23
import { Registry } from '../src/registry';
34

packages/core/tests/import_export.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it } from 'vitest';
12
import { createStateNode, NodeId } from '../src/graph/components';
23
import { initializeTrrack } from '../src/provenance/trrack';
34
import { Registry } from '../src/registry';
@@ -98,6 +99,7 @@ describe('Export', () => {
9899
expect(imported.root.id).toBe(exportObject.root);
99100
expect(imported.current.id).toBe(exportObject.root);
100101
await expect(imported.to(orphan.id)).rejects.toThrow();
102+
});
101103

102104
it('keeps graph.initialState isolated from later updates', async () => {
103105
const { trrack, add } = setup();

packages/core/tests/recording.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it } from 'vitest';
12
import { initializeTrrack } from '../src/provenance/trrack';
23
import { Registry } from '../src/registry';
34

packages/core/tests/registry.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it } from 'vitest';
12
import { Registry } from '../src/registry';
23

34
describe('Registry', () => {

packages/core/tests/traversal.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { describe, expect, it, vi } from 'vitest';
12
import { initializeTrrack } from '../src/provenance/trrack';
23
import { Registry } from '../src/registry';
34

0 commit comments

Comments
 (0)