Jelajahi Sumber

Fix e2e test paths

Chris Estreich 10 bulan lalu
induk
melakukan
e009d5f14c
3 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 1 1
      e2e/.vscode-test.mjs
  2. 1 1
      e2e/package.json
  3. 1 1
      e2e/src/runTest.ts

+ 1 - 1
e2e/.vscode-test.mjs

@@ -6,7 +6,7 @@ import { defineConfig } from '@vscode/test-cli';
 
 export default defineConfig({
 	label: 'integrationTest',
-	files: 'out/e2e/src/suite/**/*.test.js',
+	files: 'out/suite/**/*.test.js',
 	workspaceFolder: '.',
 	mocha: {
 		ui: 'tdd',

+ 1 - 1
e2e/package.json

@@ -7,7 +7,7 @@
 		"compile": "tsc -p tsconfig.json",
 		"lint": "eslint src --ext ts",
 		"check-types": "tsc --noEmit",
-		"test": "npm run compile && npx dotenvx run -f .env.integration -- node ./out/e2e/src/runTest.js",
+		"test": "npm run compile && npx dotenvx run -f .env.integration -- node ./out/runTest.js",
 		"ci": "npm run build && npm run test"
 	},
 	"dependencies": {},

+ 1 - 1
e2e/src/runTest.ts

@@ -6,7 +6,7 @@ async function main() {
 	try {
 		// The folder containing the Extension Manifest package.json
 		// Passed to `--extensionDevelopmentPath`
-		const extensionDevelopmentPath = path.resolve(__dirname, "../../../../")
+		const extensionDevelopmentPath = path.resolve(__dirname, "../../")
 
 		// The path to the extension test script
 		// Passed to --extensionTestsPath