You can debug unit tests with VSCode following the steps: (Based on article)
- Install VsCode
- Create launch.json file on ~/.vscode folder with follow config:
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Current Test File",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run", "${relativeFile}"],
"smartStep": true,
"console": "integratedTerminal"
}
]
}
- On terminal, run test with command:
yarn test
- Open vscode
- Set breakpoint on code
- Press F5 to run Debug and wait to stop on breakpoint
Send pull request develop
to main
on github repository and merge it.
https://github.com/summernote/summernote/compare/main...develop
Build dist files and push to main
# change branch
git checkout main
# fetch all changes
git pull
# Bump version in package.json
# build dist files and binary(.zip) for release post
yarn build
# Commit and add tag for new version
git commit -a -m "Update dist files"
git tag -a "<new-version>"
# Push new dist files and tags to remote repository.
git push origin --tags
Post release note with new tag version on github
https://github.com/summernote/summernote/releases/new
Publish on npm registry
yarn publish
Update summernote version in _config.yml
.
Request maintainers of each connector to update package information.