|
5 | 5 | * LICENSE file in the root directory of this source tree. |
6 | 6 | */ |
7 | 7 |
|
8 | | -import {isJestCircusRun} from '@jest/test-utils'; |
| 8 | +import {isJestJasmineRun} from '@jest/test-utils'; |
9 | 9 | import {json as runWithJson} from '../runJest'; |
10 | 10 |
|
11 | 11 | it('defaults to null for location', () => { |
@@ -45,39 +45,39 @@ it('adds correct location info when provided with flag', () => { |
45 | 45 | }); |
46 | 46 |
|
47 | 47 | expect(assertions[3].location).toEqual({ |
48 | | - column: isJestCircusRun() ? 1 : 22, |
| 48 | + column: isJestJasmineRun() ? 22 : 1, |
49 | 49 | line: 24, |
50 | 50 | }); |
51 | 51 |
|
52 | 52 | expect(assertions[4].location).toEqual({ |
53 | | - column: isJestCircusRun() ? 1 : 22, |
| 53 | + column: isJestJasmineRun() ? 22 : 1, |
54 | 54 | line: 24, |
55 | 55 | }); |
56 | 56 |
|
57 | 57 | // Technically the column should be 3, but callsites is not correct. |
58 | 58 | // jest-circus uses stack-utils + asyncErrors which resolves this. |
59 | 59 | expect(assertions[5].location).toEqual({ |
60 | | - column: isJestCircusRun() ? 3 : 2, |
| 60 | + column: isJestJasmineRun() ? 2 : 3, |
61 | 61 | line: 29, |
62 | 62 | }); |
63 | 63 |
|
64 | 64 | expect(assertions[6].location).toEqual({ |
65 | | - column: isJestCircusRun() ? 3 : 2, |
| 65 | + column: isJestJasmineRun() ? 2 : 3, |
66 | 66 | line: 33, |
67 | 67 | }); |
68 | 68 |
|
69 | 69 | expect(assertions[7].location).toEqual({ |
70 | | - column: isJestCircusRun() ? 3 : 2, |
| 70 | + column: isJestJasmineRun() ? 2 : 3, |
71 | 71 | line: 37, |
72 | 72 | }); |
73 | 73 |
|
74 | 74 | expect(assertions[8].location).toEqual({ |
75 | | - column: isJestCircusRun() ? 3 : 24, |
| 75 | + column: isJestJasmineRun() ? 24 : 3, |
76 | 76 | line: 41, |
77 | 77 | }); |
78 | 78 |
|
79 | 79 | expect(assertions[9].location).toEqual({ |
80 | | - column: isJestCircusRun() ? 3 : 24, |
| 80 | + column: isJestJasmineRun() ? 24 : 3, |
81 | 81 | line: 41, |
82 | 82 | }); |
83 | 83 | }); |
0 commit comments