File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 5252 "syncPackageJson" : " ts-node ./scripts/build/syncPackageJson.ts" ,
5353 "clean" : " ts-node ../../scripts/clean.ts dist/ LICENSE NOTICE" ,
5454 "compile" : " npm run clean && npm run buildScripts && webpack --mode development" ,
55+ "compileOnly" : " tsc -p ./" ,
5556 "package" : " ts-node ../../scripts/package.ts" ,
5657 "format" : " prettier --ignore-path ../../.prettierignore --check src scripts" ,
5758 "formatfix" : " prettier --ignore-path ../../.prettierignore --write src scripts" ,
5859 "lint" : " echo 'Nothing to lint yet!'" ,
5960 "watch" : " npm run clean && npm run buildScripts && tsc -watch -p ./" ,
61+ "testCompile" : " npm run clean && npm run buildScripts && npm run compileOnly" ,
62+ "testE2E" : " npm run testCompile && c8 ts-node ../core/scripts/test/testE2E.ts dist/test/e2e/index.js" ,
6063 "webRun" : " npx @vscode/test-web --open-devtools --browserOption=--disable-web-security --waitForDebugger=9222 --extensionDevelopmentPath=. ." ,
6164 "webWatch" : " npm run clean && npm run buildScripts && webpack --mode development --watch" ,
6265 "serve" : " webpack serve --config-name mainServe --mode development" ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import { VSCODE_EXTENSION_ID } from 'aws-core-vscode/utils'
88
99export function run ( ) : Promise < void > {
1010 return runTests (
11- process . env . TEST_DIR ?? 'src/testE2E ' ,
11+ process . env . TEST_DIR ?? 'test/e2e ' ,
1212 [ '../../core/dist/src/testInteg/globalSetup.test.ts' ] ,
1313 VSCODE_EXTENSION_ID . amazonq
1414 )
Original file line number Diff line number Diff line change 39543954 "testCompile" : " npm run clean && npm run buildScripts && npm run compileOnly" ,
39553955 "test" : " npm run testCompile && c8 ts-node ./scripts/test/test.ts" ,
39563956 "testWeb" : " npm run compileDev && c8 ts-node ./scripts/test/testWeb.ts" ,
3957- "testE2E" : " npm run testCompile && c8 ts-node ./scripts/test/testE2E.ts" ,
3957+ "testE2E" : " npm run testCompile && c8 ts-node ./scripts/test/testE2E.ts dist/src/testE2E/index.js " ,
39583958 "testInteg" : " npm run testCompile && c8 ts-node ./scripts/test/testInteg.ts" ,
39593959 "format" : " prettier --ignore-path ../../.prettierignore --check src scripts" ,
39603960 "formatfix" : " prettier --ignore-path ../../.prettierignore --write src scripts" ,
Original file line number Diff line number Diff line change 55
66import { runToolkitTests } from './launchTestUtilities'
77void ( async ( ) => {
8- await runToolkitTests ( 'e2e' , 'dist/src/testE2E/index.js' )
8+ const relativeEntrypoint = process . argv [ 2 ]
9+ if ( ! relativeEntrypoint ) {
10+ throw new Error ( 'Relative entrypoint is required' )
11+ }
12+ await runToolkitTests ( 'e2e' , relativeEntrypoint )
913} ) ( )
You can’t perform that action at this time.
0 commit comments