Skip to content

Commit 9d22877

Browse files
committed
chore: move to snapshots folder
1 parent 079baf4 commit 9d22877

12 files changed

+17
-11
lines changed

packages/core/src/api/nodeUtil.test.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ describe("Test getBlocksChangedByTransaction", () => {
4545

4646
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
4747

48-
await expect(blocksChanged).toMatchFileSnapshot("blocks-inserted.json");
48+
await expect(blocksChanged).toMatchFileSnapshot(
49+
"__snapshots__/blocks-inserted.json"
50+
);
4951
});
5052

5153
it("should return nested blocks inserted by a transaction", async () => {
@@ -63,7 +65,7 @@ describe("Test getBlocksChangedByTransaction", () => {
6365
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
6466

6567
await expect(blocksChanged).toMatchFileSnapshot(
66-
"blocks-inserted-nested.json"
68+
"__snapshots__/blocks-inserted-nested.json"
6769
);
6870
});
6971

@@ -72,7 +74,9 @@ describe("Test getBlocksChangedByTransaction", () => {
7274

7375
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
7476

75-
await expect(blocksChanged).toMatchFileSnapshot("blocks-deleted.json");
77+
await expect(blocksChanged).toMatchFileSnapshot(
78+
"__snapshots__/blocks-deleted.json"
79+
);
7680
});
7781

7882
it("should return nested blocks deleted by a transaction", async () => {
@@ -81,7 +85,7 @@ describe("Test getBlocksChangedByTransaction", () => {
8185
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
8286

8387
await expect(blocksChanged).toMatchFileSnapshot(
84-
"blocks-deleted-nested.json"
88+
"__snapshots__/blocks-deleted-nested.json"
8589
);
8690
});
8791

@@ -94,7 +98,9 @@ describe("Test getBlocksChangedByTransaction", () => {
9498

9599
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
96100

97-
await expect(blocksChanged).toMatchFileSnapshot("blocks-updated.json");
101+
await expect(blocksChanged).toMatchFileSnapshot(
102+
"__snapshots__/blocks-updated.json"
103+
);
98104
});
99105

100106
it("should return nested blocks updated by a transaction", async () => {
@@ -107,7 +113,7 @@ describe("Test getBlocksChangedByTransaction", () => {
107113
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
108114

109115
await expect(blocksChanged).toMatchFileSnapshot(
110-
"blocks-updated-nested.json"
116+
"__snapshots__/blocks-updated-nested.json"
111117
);
112118
});
113119

@@ -119,7 +125,7 @@ describe("Test getBlocksChangedByTransaction", () => {
119125
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
120126

121127
await expect(blocksChanged).toMatchFileSnapshot(
122-
"blocks-updated-nested-deep.json"
128+
"__snapshots__/blocks-updated-nested-deep.json"
123129
);
124130
});
125131

@@ -136,7 +142,7 @@ describe("Test getBlocksChangedByTransaction", () => {
136142
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
137143

138144
await expect(blocksChanged).toMatchFileSnapshot(
139-
"blocks-updated-nested-multiple.json"
145+
"__snapshots__/blocks-updated-nested-multiple.json"
140146
);
141147
});
142148

@@ -155,7 +161,7 @@ describe("Test getBlocksChangedByTransaction", () => {
155161
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
156162

157163
await expect(blocksChanged).toMatchFileSnapshot(
158-
"blocks-updated-single.json"
164+
"__snapshots__/blocks-updated-single.json"
159165
);
160166
});
161167

@@ -174,7 +180,7 @@ describe("Test getBlocksChangedByTransaction", () => {
174180
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
175181

176182
await expect(blocksChanged).toMatchFileSnapshot(
177-
"blocks-updated-multiple.json"
183+
"__snapshots__/blocks-updated-multiple.json"
178184
);
179185
});
180186

@@ -193,7 +199,7 @@ describe("Test getBlocksChangedByTransaction", () => {
193199
const blocksChanged = getBlocksChangedByTransaction(transaction!, editor);
194200

195201
await expect(blocksChanged).toMatchFileSnapshot(
196-
"blocks-updated-multiple-insert.json"
202+
"__snapshots__/blocks-updated-multiple-insert.json"
197203
);
198204
});
199205
});

0 commit comments

Comments
 (0)