Skip to content

Commit

Permalink
Try to write a slightly more relevant test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Dec 13, 2023
1 parent e7601ff commit 9f1ac92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .vscode-test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const {defineConfig} = require('@vscode/test-cli');

module.exports = defineConfig({files: 'out/test/**/*.test.js'});
module.exports = defineConfig({
files: 'out/test/**/*.test.js',
workspaceFolder: './sus'
});
11 changes: 7 additions & 4 deletions src/test/extension.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import * as assert from 'assert';
import * as vscode from 'vscode';
//import * as myExtension from '../extension';

suite('Extension Test Suite', () => {
test('Sample test', () => {
assert.strictEqual(-1, [1, 2, 3].indexOf(5));
assert.strictEqual(-1, [1, 2, 3].indexOf(0));
suite('Test Extension', () => {
test('Tests are listed', () => {
// Find the "Testing" activity bar icon and click it:
vscode.commands.executeCommand('workbench.view.extension.test');

// Find the "Run All Tests" button and click it:
vscode.commands.executeCommand('workbench.testing.action.runAllTests');
});
});

0 comments on commit 9f1ac92

Please sign in to comment.