From 8d00f3a86ca75e6349c0bb6a8251736f954e93c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Br=C3=A4unlich?= Date: Tue, 9 Jul 2024 15:15:50 +0200 Subject: [PATCH] Update to Node 16 and vscode/test-electron 2.3.8 (#306) * increase versions * remove cluster-settings * enable test step again --- .github/workflows/build.yml | 4 ++-- package.json | 4 ++-- src/DynamicsNAV.ts | 1 - src/test/suite/NAVObject.FilePattern.test.ts | 1 - src/test/suite/NAVObject.PrefexAndSuffix.test.ts | 1 - src/test/suite/WorkspaceFiles.test.ts | 1 - 6 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 923a88ee..6ee02927 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,8 +13,8 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 14 + node-version: 16 - run: yarn install - # - run: yarn test + - run: yarn test - run: npm install -g vsce - run: vsce package diff --git a/package.json b/package.json index 791bc4c2..1b7d53be 100644 --- a/package.json +++ b/package.json @@ -478,13 +478,13 @@ "@types/vscode": "^1.28.0", "@types/glob": "^7.2.0", "@types/mocha": "^9.0.0", - "@types/node": "14.x", + "@types/node": "16.x", "@typescript-eslint/eslint-plugin": "^5.9.1", "@typescript-eslint/parser": "^5.9.1", "eslint": "^8.6.0", "glob": "^7.2.0", "mocha": "^9.1.3", "typescript": "^4.5.4", - "@vscode/test-electron": "^2.0.3" + "@vscode/test-electron": "^2.3.8" } } \ No newline at end of file diff --git a/src/DynamicsNAV.ts b/src/DynamicsNAV.ts index 3e345dba..32a3ebf1 100644 --- a/src/DynamicsNAV.ts +++ b/src/DynamicsNAV.ts @@ -3,7 +3,6 @@ import { Settings } from './Settings'; import * as crsOutput from './CRSOutput'; import { exec, spawn } from 'child_process'; import * as vscode from 'vscode'; -import { settings } from 'cluster'; import { AppInsights, EventName } from './ApplicationInsights'; const open = require('open'); diff --git a/src/test/suite/NAVObject.FilePattern.test.ts b/src/test/suite/NAVObject.FilePattern.test.ts index dd3aa9d6..eca17931 100644 --- a/src/test/suite/NAVObject.FilePattern.test.ts +++ b/src/test/suite/NAVObject.FilePattern.test.ts @@ -6,7 +6,6 @@ import { WorkspaceFiles } from '../../WorkspaceFiles' import * as myExtension from '../../extension'; import * as NAVTestObjectLibrary from './NAVTestObjectLibrary' import { Settings } from '../../Settings'; -import { settings } from 'cluster'; import { StringFunctions } from '../../StringFunctions' suite("NAVObject FilePattern Tests", () => { diff --git a/src/test/suite/NAVObject.PrefexAndSuffix.test.ts b/src/test/suite/NAVObject.PrefexAndSuffix.test.ts index ce7840e7..0d5fee95 100644 --- a/src/test/suite/NAVObject.PrefexAndSuffix.test.ts +++ b/src/test/suite/NAVObject.PrefexAndSuffix.test.ts @@ -6,7 +6,6 @@ import { WorkspaceFiles } from '../../WorkspaceFiles' import * as myExtension from '../../extension'; import * as NAVTestObjectLibrary from './NAVTestObjectLibrary' import { Settings } from '../../Settings'; -import { settings } from 'cluster'; import { FileDecoration } from 'vscode'; suite("NAVObject ObjectNamePrefix Tests", () => { diff --git a/src/test/suite/WorkspaceFiles.test.ts b/src/test/suite/WorkspaceFiles.test.ts index 6df50603..2014e17a 100644 --- a/src/test/suite/WorkspaceFiles.test.ts +++ b/src/test/suite/WorkspaceFiles.test.ts @@ -5,7 +5,6 @@ import { Settings } from '../../Settings'; import { NAVObject } from '../../NAVObject' import { WorkspaceFiles } from '../../WorkspaceFiles'; import * as NAVTestObjectLibrary from './NAVTestObjectLibrary' -import { settings } from 'cluster'; suite("WorkspaceFiles Tests", () => { test("getDestinationFolder - test", () => {