Closed code-withAshish closed 1 year ago
@code-withAshish could you provide here also your scripts
from package.json to show how execution of tests is called?
@djelinek i am using the scripts as provided in docs here are all of my scripts
"scripts": {
"vscode:prepublish": "yarn run esbuild-base --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "yarn run esbuild-base --sourcemap",
"esbuild-watch": "yarn run esbuild-base --sourcemap --watch",
"compile-web": "node src/scripts/compile_svelte.mjs",
"generate-filter-queries": "ts-node src/filter_explorer/prepare.ts",
"compile": "tsc -p .",
"test": "yarn compile && extest setup-and-run out/test/*.js"
},
and my test
script being
"test": "yarn compile && extest setup-and-run out/test/*.js"
what is your environment?
OS: ??? node version: ??? VSCode version: ??? vscode-extension-tester version: ???
@djelinek
OS: Ubuntu 22.04 LTS node version: v18.16.0 vscode version: 1.79.0 vscode-extension-tester version: 5.7.1
could you reproduce with node 16? we are currently not support node 16+
Ohh that might be the issue thanks I'll look into it
@djelinek also do you have any suggestions on how to test vscode extensions on node 18 i dont need very granular testing though my use case is not that big?
unfortunately not yet. I will be for sure work on support of node v16+, but for now it is not tested and not supported so I dont know what is working or not at vscode-extension-tester side
@djelinek it' working fine for node v16
@djelinek is there a headless version or mode if this, so it can be run in CI i dont want the vscode nstance to visually open?
@djelinek is there a headless version or mode if this, so it can be run in CI i dont want the vscode nstance to visually open?
It is not at this moment. Still only opened request to investigate more https://github.com/redhat-developer/vscode-extension-tester/issues/86
closing - it was related to unsupported NodeJS 18 version.
Feel free to reopen or open another in case you will need.
Error:-
I am following everything as per the docs and still i am getting this issue