File tree Expand file tree Collapse file tree 5 files changed +473
-2
lines changed
Expand file tree Collapse file tree 5 files changed +473
-2
lines changed Original file line number Diff line number Diff line change 2626 key : yarn-cache
2727 - name : Install dependencies
2828 run : tool/yarn install --frozen-lockfile --prefer-offline
29+ - name : Unit tests
30+ run : tool/yarn test
2931 - name : Lint
3032 run : tool/yarn lint
3133 - name : Typescript
Original file line number Diff line number Diff line change 1515 },
1616 "outFiles" : [" ${workspaceFolder}/dist/**/*.js" ],
1717 "preLaunchTask" : " ${defaultBuildTask}"
18+ },
19+ {
20+ "type" : " node" ,
21+ "request" : " launch" ,
22+ "name" : " Debug Current Test File" ,
23+ "autoAttachChildProcesses" : true ,
24+ "skipFiles" : [" <node_internals>/**" , " **/node_modules/**" ],
25+ "program" : " ${workspaceRoot}/node_modules/vitest/vitest.mjs" ,
26+ "args" : [" run" , " ${relativeFile}" ],
27+ "smartStep" : true ,
28+ "console" : " integratedTerminal"
1829 }
1930 ]
2031}
Original file line number Diff line number Diff line change 314314 "package" : " vsce package --allow-star-activation" ,
315315 "precommit" : " lint-staged" ,
316316 "prepare" : " husky install" ,
317+ "test" : " vitest --passWithNoTests" ,
317318 "vscode:prepublish" : " (yarn run bundle-js & pid1=$!; yarn run bundle-go & pid2=$!; wait $pid1 || exit 1; wait $pid2 || exit 1)" ,
318319 "watch" : " webpack serve"
319320 },
351352 "ts-loader" : " ^9.4.4" ,
352353 "typescript" : " ^5.1.6" ,
353354 "utf-8-validate" : " ^6.0.3" ,
355+ "vitest" : " ^.33.0" ,
354356 "vscode-jsonrpc" : " ^8.1.0" ,
355357 "webpack" : " ^5.88.2" ,
356358 "webpack-cli" : " ^5.1.4" ,
Original file line number Diff line number Diff line change 1+ import { configDefaults , defineConfig } from 'vitest/config' ;
2+
3+ export default defineConfig ( {
4+ test : {
5+ exclude : [ ...configDefaults . exclude , '**/out/**' ] ,
6+ } ,
7+ } ) ;
You can’t perform that action at this time.
0 commit comments