You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: 'should add a TODO for jasmine.clock().autoTick()',
40
+
input: 'jasmine.clock().autoTick();',
41
+
expected: `// TODO: vitest-migration: Vitest does not have a direct equivalent for jasmine.clock().autoTick(). Please migrate this manually. See: https://vitest.dev/api/vi.html#fake-timers
42
+
jasmine.clock().autoTick();`,
43
+
},
44
+
{
45
+
description: 'should add a TODO for jasmine.clock().withMock()',
46
+
input: 'jasmine.clock().withMock(noop);',
47
+
expected: `// TODO: vitest-migration: Vitest does not have a direct equivalent for jasmine.clock().withMock(). Please migrate this manually via vi.useFakeTimers() and vi.useRealTimers(). See: https://vitest.dev/api/vi.html#vi-usefaketimers
// TODO: vitest-migration: jasmine.addAsyncMatchers is not supported. Please manually migrate to expect.extend(). See: https://vitest.dev/api/expect.html#expect-extend
description: 'should add a TODO for jasmine.addCustomObjectFormatter',
166
+
input: `
167
+
jasmine.addCustomObjectFormatter((val) => {
168
+
if (val instanceof MyClass) return 'MyClass(' + val.id + '})';
169
+
});
170
+
`,
171
+
expected: `// TODO: vitest-migration: jasmine.addCustomObjectFormatter is not supported. May be possible to migrate to expect.addSnapshotSerializer(). See: https://vitest.dev/api/expect.html#expect-addsnapshotserializer
172
+
jasmine.addCustomObjectFormatter((val) => {
173
+
if (val instanceof MyClass) return 'MyClass(' + val.id + '})';
174
+
});
175
+
`,
176
+
},
177
+
{
178
+
description: 'should add a TODO for jasmine.mapContaining',
expected: `// TODO: vitest-migration: jasmine.mapContaining is not supported. Vitest does not have a built-in matcher for Maps. Please manually assert the contents of the Map.
expected: `// TODO: vitest-migration: jasmine.setContaining is not supported. Vitest does not have a built-in matcher for Sets. Please manually assert the contents of the Set.
expected: `// TODO: vitest-migration: jasmine.addSpyStrategy is not supported. Please manually migrate to spy.mockImplementation(). See: https://vitest.dev/api/mock.html#mockimplementation
expected: `// TODO: vitest-migration: jasmine.mapContaining is not supported. Vitest does not have a built-in matcher for Maps. Please manually assert the contents of the Map.
expected: `// TODO: vitest-migration: jasmine.setContaining is not supported. Vitest does not have a built-in matcher for Sets. Please manually assert the contents of the Set.
0 commit comments