File tree Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Expand file tree Collapse file tree 4 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,14 @@ const watch = process.argv.includes("--watch");
55
66async function main ( ) {
77 const ctx = await esbuild . context ( {
8- entryPoints : [ "src/test/runTest .ts" ] ,
8+ entryPoints : [ "src/test/suit/index .ts" ] ,
99 bundle : true ,
1010 format : "cjs" ,
1111 minify : production ,
1212 sourcemap : ! production ,
1313 sourcesContent : false ,
1414 platform : "node" ,
15- outfile : "out/test/runTest .js" ,
15+ outfile : "out/test/suit/index .js" ,
1616 external : [ "vscode" , "jsonc-parser" ] ,
1717 logLevel : "silent" ,
1818 plugins : [
Original file line number Diff line number Diff line change 3131 "_vscode:pack" : " rm snippetsmanager-*.vsix; vsce package --yarn" ,
3232 "_vscode:uninstall" : " code --uninstall-extension zjffun.snippetsmanager" ,
3333 "compile" : " yarn run editor-view:build && node esbuild.js" ,
34- "compile-test" : " node esbuild-test.js" ,
3534 "compile-web" : " webpack --mode production --devtool hidden-source-map" ,
3635 "editor-view:build" : " webpack --config ./views/code-snippets-editor/webpack.config.js --mode=production --node-env=production" ,
3736 "editor-view:build:dev" : " webpack --config ./views/code-snippets-editor/webpack.config.js --mode=development" ,
3837 "editor-view:watch" : " webpack --config ./views/code-snippets-editor/webpack.config.js --watch" ,
3938 "eslint-fix" : " eslint --fix ." ,
4039 "prettier-fix" : " prettier --write ." ,
41- "test" : " yarn run compile -test && node ./out /test/runTest.js" ,
42- "test-web" : " vscode-test-web --extensionDevelopmentPath=. --extensionTestsPath=./dist/web/ test/suite/index .js ./test.temp " ,
40+ "test" : " node esbuild -test.js && node ./test/runTest.js" ,
41+ "test-web" : " node ./ test/runTestWeb .js" ,
4342 "watch" : " concurrently \" yarn run editor-view:watch\" \" node esbuild.js --watch\" " ,
4443 "watch-web" : " webpack --watch" ,
4544 "sort-package-json" : " sort-package-json"
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ async function main() {
66 try {
77 // The folder containing the Extension Manifest package.json
88 // Passed to `--extensionDevelopmentPath`
9- const extensionDevelopmentPath = path . resolve ( __dirname , "../../ " ) ;
9+ const extensionDevelopmentPath = path . resolve ( __dirname , "../" ) ;
1010
1111 // The path to test runner
1212 // Passed to --extensionTestsPath
13- const extensionTestsPath = path . resolve ( __dirname , "./suite /index" ) ;
13+ const extensionTestsPath = path . resolve ( __dirname , "../out/test/suit /index" ) ;
1414
1515 // Download VS Code, unzip it and run the integration test
1616 await runTests ( {
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ async function main() {
55 try {
66 // The folder containing the Extension Manifest package.json
77 // Passed to `--extensionDevelopmentPath`
8- const extensionDevelopmentPath = path . resolve ( __dirname , "../../ " ) ;
8+ const extensionDevelopmentPath = path . resolve ( __dirname , "../" ) ;
99
1010 // The path to test runner
1111 // Passed to --extensionTestsPath
1212 const extensionTestsPath = path . resolve (
1313 __dirname ,
14- "../../ dist/web/test/suite/index" ,
14+ "../dist/web/test/suite/index" ,
1515 ) ;
1616
1717 // Download VS Code, unzip it and run the integration test
You can’t perform that action at this time.
0 commit comments