Skip to content

Commit

Permalink
Fixed unit test build (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Oct 9, 2024
1 parent ccbee21 commit 3b5888f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions src/util/uiUtils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,20 @@ describe('createConnectionQuickPickOptions', () => {
'should return quick pick options: editorActiveConnectionUrl=%s',
(_label, editorActiveConnectionUrl) => {
const serversWithoutConnections: ServerState[] = [
{ type: 'DHC', url: serverUrlB },
{ type: 'DHC', url: serverUrlD },
{
type: 'DHC',
url: serverUrlB,
isConnected: false,
isRunning: false,
connectionCount: 0,
},
{
type: 'DHC',
url: serverUrlD,
isConnected: false,
isRunning: false,
connectionCount: 0,
},
];
const connections: ConnectionState[] = [
{ serverUrl: serverUrlA, isConnected: true },
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.unit.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.spec.ts"],
"include": ["src/**/*.spec.ts", "src/dh/modules.d.ts"],
// Override ./tsconfig `exclude` so that *.spec.ts files are included
"exclude": ["node_modules"],
"references": [{ "path": "./packages/require-jsapi" }]
Expand Down

0 comments on commit 3b5888f

Please sign in to comment.