Skip to content

Commit

Permalink
chore: ➖ remove all test related code
Browse files Browse the repository at this point in the history
  • Loading branch information
qingmo.xwj committed Jun 19, 2021
1 parent 7f2a572 commit 0e94ed5
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 555 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"no-throw-literal": "warn",
"semi": "off"
},
"ignorePatterns": ["node_modules", "out", "dist", "**/*.d.ts"]
"ignorePatterns": ["node_modules", "dist", "**/*.d.ts"]
}
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
out
dist
node_modules
.vscode-test/
dist
*.vsix
.DS_Store
39 changes: 11 additions & 28 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,15 @@
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
},
{
"name": "Extension Tests",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
"outFiles": [
"${workspaceFolder}/dist/test/**/*.js"
],
"preLaunchTask": "${defaultBuildTask}"
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
}
]
}
2 changes: 0 additions & 2 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
.vscode/**
.vscode-test/**
dist/test/**

src/**
.gitignore
Expand Down
15 changes: 3 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,18 @@
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"compile": "rm -rf dist && tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"format": "prettier src --write",
"test": "",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"prepublish": "vsce package",
"publish": "vsce publish"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-push": "npm test"
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
Expand All @@ -186,23 +182,18 @@
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "14.x",
"@types/string-similarity": "^4.0.0",
"@types/vscode": "^1.50.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"conventional-changelog-cli": "^2.1.1",
"eslint": "^7.27.0",
"glob": "^7.1.7",
"husky": "^4.3.8",
"lint-staged": "^11.0.0",
"mocha": "^8.4.0",
"prettier": "^2.3.1",
"typescript": "^4.3.2",
"vsce": "^1.93.0",
"vscode-test": "^1.5.2"
"vsce": "^1.93.0"
},
"dependencies": {
"randexp": "^0.5.3",
Expand Down
23 changes: 0 additions & 23 deletions src/test/runTest.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/test/suite/extension.test.ts

This file was deleted.

38 changes: 0 additions & 38 deletions src/test/suite/index.ts

This file was deleted.

10 changes: 6 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
"target": "es6",
"outDir": "dist",
"lib": ["es6"],
"sourceMap": true,
"rootDir": "src",
"skipLibCheck": true,
"sourceMap": false,
"strict": true,
"esModuleInterop": true
"esModuleInterop": true,
"rootDir": "src"
},
"exclude": ["node_modules", "dist", ".vscode-test"]

"exclude": ["node_modules"]
}
Loading

0 comments on commit 0e94ed5

Please sign in to comment.