Skip to content

Commit 3116259

Browse files
committed
fix: unit tests
1 parent b3c6b53 commit 3116259

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/react/hoc/with-view-model.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ describe('withViewModel', () => {
773773
);
774774

775775
await expect(container.firstChild).toMatchFileSnapshot(
776-
`../../tests/snapshots/hoc/with-view-model/${task.name}.html`,
776+
`../../../tests/snapshots/hoc/with-view-model/${task.name}.html`,
777777
);
778778
});
779779

@@ -908,7 +908,7 @@ describe('withViewModel', () => {
908908
);
909909

910910
await expect(container.firstChild).toMatchFileSnapshot(
911-
`../../tests/snapshots/hoc/with-view-model/view-model-store/${task.name}.html`,
911+
`../../../tests/snapshots/hoc/with-view-model/view-model-store/${task.name}.html`,
912912
);
913913
expect(vmStore.spies.get).toHaveBeenCalledTimes(3);
914914
expect(vmStore._instanceAttachedCount.size).toBe(3);
@@ -1007,7 +1007,7 @@ describe('withViewModel', () => {
10071007
});
10081008

10091009
await expect(container).toMatchFileSnapshot(
1010-
`../../tests/snapshots/hoc/with-view-model/view-model-store/${task.name}.html`,
1010+
`../../../tests/snapshots/hoc/with-view-model/view-model-store/${task.name}.html`,
10111011
);
10121012
});
10131013

@@ -1123,7 +1123,7 @@ describe('withViewModel', () => {
11231123
});
11241124

11251125
await expect(container).toMatchFileSnapshot(
1126-
`../../tests/snapshots/hoc/with-view-model/view-model-store/${task.name}.html`,
1126+
`../../../tests/snapshots/hoc/with-view-model/view-model-store/${task.name}.html`,
11271127
);
11281128
});
11291129

src/react/hooks/use-create-view-model.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ describe('useCreateViewModel', () => {
5151
);
5252

5353
await expect(container.firstChild).toMatchFileSnapshot(
54-
`../../tests/snapshots/hooks/use-create-view-model/scenarios/${task.name}.html`,
54+
`../../../tests/snapshots/hooks/use-create-view-model/scenarios/${task.name}.html`,
5555
);
5656
});
5757
test('accessing to the parent VM', async ({ task }) => {
@@ -99,7 +99,7 @@ describe('useCreateViewModel', () => {
9999
);
100100

101101
await expect(container.firstChild).toMatchFileSnapshot(
102-
`../../tests/snapshots/hooks/use-create-view-model/scenarios/${task.name}.html`,
102+
`../../../tests/snapshots/hooks/use-create-view-model/scenarios/${task.name}.html`,
103103
);
104104
});
105105
});
@@ -132,7 +132,7 @@ describe('useCreateViewModel', () => {
132132
);
133133

134134
await expect(container.firstChild).toMatchFileSnapshot(
135-
`../../tests/snapshots/hooks/use-create-view-model/ViewModelSimple/${task.name}.html`,
135+
`../../../tests/snapshots/hooks/use-create-view-model/ViewModelSimple/${task.name}.html`,
136136
);
137137
});
138138

@@ -267,7 +267,7 @@ describe('useCreateViewModel', () => {
267267
);
268268

269269
await expect(container.firstChild).toMatchFileSnapshot(
270-
`../../tests/snapshots/hooks/use-create-view-model/ViewModelSimple/without-id/${task.name}.html`,
270+
`../../../tests/snapshots/hooks/use-create-view-model/ViewModelSimple/without-id/${task.name}.html`,
271271
);
272272
});
273273

src/react/hooks/use-view-model.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ describe('withViewModel', () => {
139139
);
140140

141141
await expect(container.firstChild).toMatchFileSnapshot(
142-
`../../tests/snapshots/hooks/use-view-model/${getParent ? 'parent-instance' : 'self-instance'}/access-using-${accessUsing}/${withVmStore ? 'with-view-model-store/' : ''}${depth}-depth.html`,
142+
`../../../tests/snapshots/hooks/use-view-model/${getParent ? 'parent-instance' : 'self-instance'}/access-using-${accessUsing}/${withVmStore ? 'with-view-model-store/' : ''}${depth}-depth.html`,
143143
);
144144
});
145145
};
@@ -246,7 +246,7 @@ describe('withViewModel', () => {
246246
);
247247

248248
await expect(container.firstChild).toMatchFileSnapshot(
249-
`../../tests/snapshots/hooks/use-view-model/scenarios/${task.name}.html`,
249+
`../../../tests/snapshots/hooks/use-view-model/scenarios/${task.name}.html`,
250250
);
251251
});
252252
test('container remounts VM with fixed id and some child with dynamic id', async ({
@@ -301,7 +301,7 @@ describe('withViewModel', () => {
301301
});
302302

303303
await expect(container.firstChild).toMatchFileSnapshot(
304-
`../../tests/snapshots/hooks/use-view-model/scenarios/${task.name}.html`,
304+
`../../../tests/snapshots/hooks/use-view-model/scenarios/${task.name}.html`,
305305
);
306306
});
307307
});

0 commit comments

Comments
 (0)