File tree Expand file tree Collapse file tree 8 files changed +8
-9
lines changed Expand file tree Collapse file tree 8 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ export { HatStability } from "./ide/types/HatStability";
9
9
export * from "./util" ;
10
10
export * from "./ide/util/messages" ;
11
11
export { getKey , splitKey } from "./util/splitKey" ;
12
- export { hrtimeBigintToSeconds } from "./util/timeUtils" ;
13
12
export * from "./util/disposableFrom" ;
14
13
export * from "./util/camelCaseToAllDown" ;
15
14
export { Notifier } from "./util/Notifier" ;
Original file line number Diff line number Diff line change 1
1
export * from "./testUtil/plainObjectToTarget" ;
2
- export * from "./testUtil/takeSnapshot" ;
3
2
export * from "./core/StoredTargets" ;
4
3
export * from "./cursorlessEngine" ;
5
4
export * from "./generateSpokenForm/defaultSpokenForms/surroundingPairsDelimiters" ;
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ import {
15
15
import {
16
16
StoredTargetMap ,
17
17
plainObjectToTarget ,
18
- takeSnapshot ,
19
18
} from "@cursorless/cursorless-engine" ;
20
19
import { VscodeTestHelpers } from "@cursorless/vscode-common" ;
21
20
import * as vscode from "vscode" ;
21
+ import { takeSnapshot } from "@cursorless/test-case-recorder" ;
22
22
import { VscodeFileSystem } from "./ide/vscode/VscodeFileSystem" ;
23
23
import { VscodeIDE } from "./ide/vscode/VscodeIDE" ;
24
24
import { toVscodeEditor } from "./ide/vscode/toVscodeEditor" ;
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ import {
24
24
import {
25
25
extractTargetKeys ,
26
26
getPartialTargetDescriptors ,
27
- takeSnapshot ,
28
27
type StoredTargetMap ,
29
28
} from "@cursorless/cursorless-engine" ;
30
29
import { pick } from "lodash-es" ;
30
+ import { takeSnapshot } from "./takeSnapshot" ;
31
31
32
32
export class TestCase {
33
33
private languageId : string ;
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import {
28
28
injectIde ,
29
29
SpokenFormGenerator ,
30
30
StoredTargetMap ,
31
- takeSnapshot ,
32
31
} from "@cursorless/cursorless-engine" ;
33
32
import { getRecordedTestsDirPath , walkDirsSync } from "@cursorless/node-common" ;
34
33
import { invariant } from "immutability-helper" ;
@@ -37,6 +36,7 @@ import * as fs from "node:fs";
37
36
import { access , readFile } from "node:fs/promises" ;
38
37
import * as path from "node:path" ;
39
38
import { RecordTestCaseCommandOptions } from "./RecordTestCaseCommandOptions" ;
39
+ import { takeSnapshot } from "./takeSnapshot" ;
40
40
import { TestCase } from "./TestCase" ;
41
41
42
42
const CALIBRATION_DISPLAY_DURATION_MS = 50 ;
Original file line number Diff line number Diff line change 1
- export * from "./TestCaseRecorder" ;
2
1
export * from "./ScopeTestRecorder" ;
2
+ export * from "./takeSnapshot" ;
3
+ export * from "./TestCaseRecorder" ;
Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ import {
2
2
ExcludableSnapshotField ,
3
3
ExtraContext ,
4
4
ExtraSnapshotField ,
5
- hrtimeBigintToSeconds ,
6
5
IDE ,
7
6
rangeToPlainObject ,
8
7
selectionToPlainObject ,
9
8
SerializedMarks ,
9
+ storedTargetKeys ,
10
10
TestCaseSnapshot ,
11
11
TextEditor ,
12
12
} from "@cursorless/common" ;
13
- import { type StoredTargetMap } from "../core/StoredTargets " ;
14
- import { storedTargetKeys } from "@cursorless/common " ;
13
+ import type { StoredTargetMap } from "@cursorless/cursorless-engine " ;
14
+ import { hrtimeBigintToSeconds } from "./timeUtils " ;
15
15
16
16
export async function takeSnapshot (
17
17
storedTargets : StoredTargetMap | undefined ,
File renamed without changes.
You can’t perform that action at this time.
0 commit comments