1 import TaxReturn from '../TaxReturn';
2 import Person from '../Person';
4 import Form1040, { FilingStatus } from './Form1040';
5 import Form8606 from './Form8606';
7 test('skip part 1', () => {
8 const p = Person.self('A');
9 const tr = new TaxReturn(2019);
10 const f = new Form8606({
12 nondeductibleContributions: 6000,
13 traditionalIraBasis: 0,
14 distributionFromTradSepOrSimpleIraOrMadeRothConversion: false
18 expect(f.getValue(tr, '14')).toBe(6000);
21 test('Roth conversion no basis', () => {
22 const p = Person.self('A');
23 const tr = new TaxReturn(2019);
24 const f = new Form8606({
26 nondeductibleContributions: 6000,
27 traditionalIraBasis: 0,
28 distributionFromTradSepOrSimpleIraOrMadeRothConversion: true,
29 contributionsMadeInCurrentYear: 0,
30 valueOfAllTradSepSimpleIras: 0,
31 distributionsFromAllTradSepSimpleIras: 0,
32 amountConvertedFromTradSepSimpleToRoth: 6000,
36 expect(f.getValue(tr, '9')).toBe(6000);
37 expect(f.getValue(tr, '13')).toBe(6000);
38 expect(f.getValue(tr, '14')).toBe(0);
39 expect(f.getValue(tr, '15c')).toBe(0);
40 expect(f.getValue(tr, '16')).toBe(6000);
41 expect(f.getValue(tr, '17')).toBe(6000);
42 expect(f.getValue(tr, '18')).toBe(0);