Skip to content

Commit fffad4d

Browse files
committed
chore(jest-each): Add additional open comment check
1 parent 9fb62bb commit fffad4d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/jest-each/src/__tests__/index.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ describe('template', () => {
5454

5555
describe('removes trailing comments', () => {
5656
let testCount = 0;
57-
const expectedTestCount = 2;
57+
const expectedTestCount = 3;
5858

5959
each`
6060
a | b | expected
6161
${0} | ${0} | ${0} // ignores trailing comment
6262
${1} | ${1} | ${2} /* ignores second comment */
63+
/* ${1} | ${1} | ${3} /* ignores second comment */ */
64+
${2} | ${2} | ${4}
6365
`.test('returns $expected when given $a and $b', ({a, b, expected}) => {
6466
testCount += 1;
6567
expect(a + b).toBe(expected);

0 commit comments

Comments
 (0)