Skip to content

Commit 2056c7b

Browse files
committed
Move interpretedResultsPath to before hook
1 parent 4f6862a commit 2056c7b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extensions/ql-vscode/src/vscode-tests/no-workspace/query-results.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,20 @@ describe('query-results', () => {
160160
describe('interpretResultsSarif', () => {
161161
let mockServer: CodeQLCliServer;
162162
let spy: Sinon.SinonExpectation;
163+
let interpretedResultsPath: string;
163164
const metadata = {
164165
kind: 'my-kind',
165166
id: 'my-id' as string | undefined,
166167
scored: undefined
167168
};
168169
const resultsPath = '123';
169-
const interpretedResultsPath = path.join(tmpDir.name, 'interpreted.json');
170+
170171
const sourceInfo = {};
171172

172173
beforeEach(() => {
173174
spy = sandbox.mock();
174175
spy.returns({ a: '1234' });
176+
interpretedResultsPath = path.join(tmpDir.name, 'interpreted.json');
175177

176178
mockServer = {
177179
interpretBqrsSarif: spy

0 commit comments

Comments
 (0)