Skip to content

Commit 2eb66c8

Browse files
committed
Fix tests
1 parent e73193d commit 2eb66c8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@
320320
"scripts": {
321321
"lint": "eslint **/*.ts",
322322
"check-types": "tsc --noEmit",
323+
"pretest": "node esbuild.js",
323324
"test": "jest -w=40% && vitest run",
324325
"format": "prettier --write .",
325326
"build": "node esbuild.js --production --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",

src/services/tree-sitter/__tests__/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export async function initializeWorkingParser() {
5454
const originalLoad = TreeSitter.Language.load
5555
TreeSitter.Language.load = async (wasmPath: string) => {
5656
const filename = path.basename(wasmPath)
57-
const correctPath = path.join(process.cwd(), "dist", filename)
57+
const correctPath = path.join(process.cwd(), "..", "dist", "dist", filename)
5858
// console.log(`Redirecting WASM load from ${wasmPath} to ${correctPath}`)
5959
return originalLoad(correctPath)
6060
}

0 commit comments

Comments
 (0)