Skip to content

Commit 033aec4

Browse files
committed
refactor: move jest and add package.json to /test
1 parent 646ee3a commit 033aec4

File tree

7 files changed

+3819
-1802
lines changed

7 files changed

+3819
-1802
lines changed

lib/vscode/build/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"strict": true,
1616
"noUnusedLocals": true,
1717
"noUnusedParameters": true,
18-
"newLine": "lf",
19-
"skipLibCheck": true
18+
"newLine": "lf"
2019
},
2120
"include": [
2221
"**/*.ts"

lib/vscode/extensions/typescript-language-features/src/utils/platform.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ import * as vscode from 'vscode';
77

88
export function isWeb(): boolean {
99
// NOTE@coder: Remove unused ts-expect-error directive which causes tsc to error.
10+
// @ts-expect-error
1011
return typeof navigator !== 'undefined' && vscode.env.uiKind === vscode.UIKind.Web;
1112
}

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"@types/express": "^4.17.8",
3636
"@types/fs-extra": "^8.0.1",
3737
"@types/http-proxy": "^1.17.4",
38-
"@types/jest": "^26.0.20",
3938
"@types/js-yaml": "^3.12.3",
4039
"@types/node": "^12.12.7",
4140
"@types/node-fetch": "^2.5.7",
@@ -55,7 +54,6 @@
5554
"eslint-config-prettier": "^6.0.0",
5655
"eslint-plugin-import": "^2.18.2",
5756
"eslint-plugin-prettier": "^3.1.0",
58-
"jest": "^26.6.3",
5957
"leaked-handles": "^5.2.0",
6058
"parcel-bundler": "^1.12.4",
6159
"prettier": "^2.0.5",
File renamed without changes.

test/package.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "test",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "jest"
8+
},
9+
"keywords": [],
10+
"author": "",
11+
"license": "ISC",
12+
"devDependencies": {
13+
"@types/jest": "^26.0.20",
14+
"@types/supertest": "^2.0.10",
15+
"jest": "^26.6.3",
16+
"supertest": "^6.1.1",
17+
"ts-jest": "^26.4.4",
18+
"typescript": "^4.1.3"
19+
}
20+
}

test/yarn.lock

Lines changed: 3747 additions & 0 deletions
Large diffs are not rendered by default.

yarn.lock

Lines changed: 50 additions & 1798 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)