@@ -15,7 +15,7 @@ it("discovers tests", async () => {
15
15
const c = await getController ( ) ;
16
16
17
17
await expectTestTree ( c , [
18
- [ "hello.test.js" , [ [ "math" , [ [ "addition" ] , [ "subtraction" ] ] ] ] ] ,
18
+ [ "hello.test.js" , [ [ "math" , [ [ "addition" ] ] ] , [ "math" , [ [ "subtraction" ] ] ] ] ] ,
19
19
[ "otherFolder" , [ [ "some.test.js" , [ [ "addition" ] ] ] ] ] ,
20
20
[ "test" , [ [ "inAFolder.js" , [ [ "addition" ] ] ] ] ] ,
21
21
[ "test-WithADash.js" , [ [ "addition" ] ] ] ,
@@ -52,7 +52,7 @@ it("cleans up folder if all child files are deleted", () =>
52
52
await onChange ;
53
53
54
54
await expectTestTree ( c , [
55
- [ "hello.test.js" , [ [ "math" , [ [ "addition" ] , [ "subtraction" ] ] ] ] ] ,
55
+ [ "hello.test.js" , [ [ "math" , [ [ "addition" ] ] ] , [ "math" , [ [ "subtraction" ] ] ] ] ] ,
56
56
[ "otherFolder" , [ [ "some.test.js" , [ [ "addition" ] ] ] ] ] ,
57
57
[ "test-WithADash.js" , [ [ "addition" ] ] ] ,
58
58
[ "test.js" , [ [ "addition" ] ] ] ,
@@ -98,7 +98,7 @@ it("runs tests", async () => {
98
98
"test-WithADash.js/addition" : [ "started" , "passed" ] ,
99
99
"test.js/addition" : [ "started" , "passed" ] ,
100
100
"withADashTheOtherWay-test.js/addition" : [ "started" , "failed" ] ,
101
- "hello.test.js/math" : [ "started" , "passed" ] ,
101
+ "hello.test.js/math" : [ "started" , "passed" , "started" , "passed" ] ,
102
102
"hello.test.js/math/addition" : [ "started" , "passed" ] ,
103
103
"hello.test.js/math/subtraction" : [ "started" , "passed" ] ,
104
104
"otherFolder/some.test.js/addition" : [ "started" , "passed" ] ,
@@ -126,7 +126,7 @@ it("runs tests in a file", async () => {
126
126
) ;
127
127
128
128
run . expectStates ( {
129
- "hello.test.js/math" : [ "started" , "passed" ] ,
129
+ "hello.test.js/math" : [ "started" , "passed" , "started" , "passed" ] ,
130
130
"hello.test.js/math/addition" : [ "started" , "passed" ] ,
131
131
"hello.test.js/math/subtraction" : [ "started" , "passed" ] ,
132
132
"withADot.test.js/addition" : [ "started" , "passed" ] ,
@@ -145,7 +145,7 @@ it("runs subsets of tests", async () => {
145
145
const nodeVersion = getNodeVersion ( ) ;
146
146
if ( nodeVersion < 22 ) {
147
147
run . expectStates ( {
148
- "hello.test.js/math" : [ "started" , "passed" ] ,
148
+ "hello.test.js/math" : [ "started" , "passed" , "started" , "passed" ] ,
149
149
"hello.test.js/math/addition" : [ "started" , "passed" ] ,
150
150
// did not work in earlier versions due to nodejs/node#51577
151
151
"hello.test.js/math/subtraction" : [ "started" , "passed" ] ,
@@ -279,7 +279,7 @@ it("handles test excludes", async () => {
279
279
c ,
280
280
new vscode . TestRunRequest (
281
281
[ c . ctrl . items . get ( "hello.test.js" ) ! ] ,
282
- [ c . ctrl . items . get ( "hello.test.js" ) ! . children . get ( "math" ) ! . children . get ( "subtraction" ) ! ] ,
282
+ [ c . ctrl . items . get ( "hello.test.js" ) ! . children . get ( "math#0 " ) ! . children . get ( "subtraction" ) ! ] ,
283
283
) ,
284
284
) ;
285
285
@@ -343,7 +343,7 @@ it("shows test output", async () => {
343
343
} ,
344
344
{
345
345
output : "another log" ,
346
- location : new vscode . Location ( uri , new vscode . Position ( 10 , 20 ) ) ,
346
+ location : new vscode . Location ( uri , new vscode . Position ( 12 , 20 ) ) ,
347
347
test : undefined ,
348
348
} ,
349
349
] ,
0 commit comments