@@ -9,6 +9,65 @@ pluginTester({
99 const add = (a, b) => a + b;
1010 `
1111 } ,
12+ 'Does not modify code given an inline value for function body' : {
13+ code : `
14+ describe('.add', () => {
15+ test('handles variables', noop);
16+ test('handles numbers', 1);
17+ test('handles booleans', true);
18+ test('handles objects', {});
19+ test('handles arrays', []);
20+ test('handles maps', new Map());
21+ test('handles sets', new Set());
22+ test('handles symbols', Symbol('x'));
23+ test('handles undefined', undefined);
24+ test('handles strings', 'hello');
25+ test('handles null', null);
26+ });
27+ `
28+ } ,
29+ 'Does not modify code given an empty test placeholder' : {
30+ code : `
31+ describe('.add', () => {
32+ test('returns 3 when given 2 and 1');
33+ });
34+ `
35+ } ,
36+ 'Does not modify code given an empty ftest placeholder' : {
37+ code : `
38+ describe('.add', () => {
39+ ftest('returns 3 when given 2 and 1');
40+ });
41+ `
42+ } ,
43+ 'Does not modify code given an empty test.only placeholder' : {
44+ code : `
45+ describe('.add', () => {
46+ test.only('returns 3 when given 2 and 1');
47+ });
48+ `
49+ } ,
50+ 'Does not modify code given an empty it placeholder' : {
51+ code : `
52+ describe('.add', () => {
53+ it('returns 3 when given 2 and 1');
54+ });
55+ `
56+ } ,
57+ 'Does not modify code given an empty fit placeholder' : {
58+ code : `
59+ describe('.add', () => {
60+ fit('returns 3 when given 2 and 1');
61+ });
62+ `
63+ } ,
64+ 'Does not modify code given an empty it.only placeholder' : {
65+ code : `
66+ describe('.add', () => {
67+ it.only('returns 3 when given 2 and 1');
68+ });
69+ `
70+ } ,
1271 'Adds number of assertions and has assertions check when given one expect statement' : {
1372 snapshot : true ,
1473 code : `
0 commit comments