mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-02 03:59:19 +08:00
62d756c447
BREAKING: The new project layout might break in some tooling setups. We've added an exports field to `package.json` to specify where statements like `import ... from 'docsify'` will import from, and left the `main` and `unpkg` fields as-is for backwards compatibility with the global <script> import method. Most people who use a non-module `<script>` tag to import Docsify will not notice a difference. Anyone else who is importing Docsify into a specilized build setup using `import` statements has a chance of being broken, so we've marked this as BREAKING.
73 lines
1.8 KiB
JSON
73 lines
1.8 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Run unit tests",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": ["test"],
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Run current test file",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeArgs": ["jest"],
|
|
"args": ["-i", "${relativeFile}", "--testPathIgnorePatterns"],
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Run selected test name",
|
|
"runtimeExecutable": "npm",
|
|
"runtimeArgs": ["run-script", "test"],
|
|
"args": [
|
|
"--",
|
|
"-i",
|
|
"${relativeFile}",
|
|
"-t",
|
|
"${selectedText}",
|
|
"--testPathIgnorePatterns"
|
|
],
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Update current test file snapshot(s)",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeArgs": ["jest"],
|
|
"args": [
|
|
"-i",
|
|
"${relativeFile}",
|
|
"--updateSnapshot",
|
|
"--testPathIgnorePatterns"
|
|
],
|
|
"console": "integratedTerminal"
|
|
},
|
|
{
|
|
"type": "node",
|
|
"request": "launch",
|
|
"name": "Update selected test name snapshot(s)",
|
|
"runtimeExecutable": "npx",
|
|
"runtimeArgs": ["jest"],
|
|
"args": [
|
|
"--",
|
|
"-i",
|
|
"${relativeFile}",
|
|
"-t",
|
|
"${selectedText}",
|
|
"--updateSnapshot",
|
|
"--testPathIgnorePatterns"
|
|
],
|
|
"console": "integratedTerminal"
|
|
}
|
|
]
|
|
}
|