typst/tools/test-helper/package.json
Laurenz 4ff59baf5e VS Code extension for easier testing 🛠
This extension enables you to
- quickly open the actual and reference output for a test case to the side
- re-run the test with the click of a button
- approve the test output (moves output to reference folder and optimizes with oxipng)
2021-02-20 23:41:42 +01:00

73 lines
2.0 KiB
JSON

{
"name": "typst-test-helper",
"displayName": "Typst Test Helper",
"description": "Helps to run, compare and approve Typst tests.",
"version": "0.0.1",
"engines": {
"vscode": "^1.53.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:ShortcutMenuBar.openTestOutput",
"onCommand:ShortcutMenuBar.approveTestOutput",
"onCommand:ShortcutMenuBar.refreshTestOutput"
],
"main": "./extension.js",
"contributes": {
"commands": [
{
"command": "ShortcutMenuBar.openTestOutput",
"title": "Open test output",
"category": "ShortcutMenuBar",
"icon": {
"light": "images/open-light.svg",
"dark": "images/open-dark.svg"
}
},
{
"command": "ShortcutMenuBar.refreshTestOutput",
"title": "Refresh test output",
"category": "ShortcutMenuBar",
"icon": {
"light": "images/refresh-light.svg",
"dark": "images/refresh-dark.svg"
}
},
{
"command": "ShortcutMenuBar.approveTestOutput",
"title": "Approve test output",
"category": "ShortcutMenuBar",
"icon": {
"light": "images/approve-light.svg",
"dark": "images/approve-dark.svg"
}
}
],
"menus": {
"editor/title": [
{
"when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
"command": "ShortcutMenuBar.openTestOutput",
"group": "navigation@0"
},
{
"when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
"command": "ShortcutMenuBar.refreshTestOutput",
"group": "navigation@2"
},
{
"when": "resourceExtname == .typ && resourcePath =~ /.*tests.*/",
"command": "ShortcutMenuBar.approveTestOutput",
"group": "navigation@3"
}
]
}
},
"devDependencies": {
"@types/vscode": "^1.53.0",
"@types/node": "^12.11.7"
}
}