Updated to match my personal preference for file structure and to keep it working into the future:
Development
Remember to always run:
npm install
After downloading the repo.
Running Tests
The project uses @vscode/test-electron to launch the extension tests within a real
VS Code instance. Tests are written in TypeScript and compiled to the out/ directory
alongside the extension code.
Simply execute:
Run all tests
npm test
Run a specific test
npm run test-single -- "Should generate component with valid module declaration"
Run all tests matching a pattern
npm run test-single -- "component"
Run all tests matching partial text
npm run test-single -- "valid module"
This will build the extension and then spawn vscode/test-electron which in turn loads
out/test/runTest.js. The existing spec files under test/ are run via Mocha inside
the extension host.
Development log
Version 1.7 Fork!
Formatting has been updated to match my personall preference