Skip to content

Commit

Permalink
Use test-var-query for all test commands
Browse files Browse the repository at this point in the history
Remove use of deprecated Cider commands, in favour of the supported
test-var-query. This fixes an issue with cljc conditionals impacting the
ability to run tests.

Fixes: #1328
  • Loading branch information
marcomorain committed Dec 9, 2021
1 parent ba64d07 commit f130bdb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/nrepl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,13 @@ export class NReplSession {
return new Promise<cider.TestResults>((resolve, reject) => {
let id = this.client.nextId;
this.messageHandlers[id] = resultHandler(resolve, reject);
this.client.write({ op: "test-all", id, session: this.sessionId, "load?": true });
this.client.write({
op: "test-var-query", id, session: this.sessionId, "var-query": {
"ns-query": {
'test?': true
}
}
});
})
}

Expand Down

0 comments on commit f130bdb

Please sign in to comment.