mirror of
https://github.com/docsifyjs/docsify.git
synced 2026-10-24 17:07:40 +08:00
Update npm scripts to ignore example tests
This commit is contained in:
Vendored
+9
-2
@@ -18,7 +18,7 @@
|
||||
"name": "Run current test file",
|
||||
"runtimeExecutable": "npm",
|
||||
"runtimeArgs": ["run-script", "test:jest"],
|
||||
"args": ["--", "-i", "${relativeFile}"],
|
||||
"args": ["--", "-i", "${relativeFile}", "--testPathIgnorePatterns"],
|
||||
"console": "integratedTerminal"
|
||||
},
|
||||
{
|
||||
@@ -27,7 +27,14 @@
|
||||
"name": "Run selected test name",
|
||||
"runtimeExecutable": "npm",
|
||||
"runtimeArgs": ["run-script", "test:jest"],
|
||||
"args": ["--", "-i", "${relativeFile}", "-t", "${selectedText}"],
|
||||
"args": [
|
||||
"--",
|
||||
"-i",
|
||||
"${relativeFile}",
|
||||
"-t",
|
||||
"${selectedText}",
|
||||
"--testPathIgnorePatterns"
|
||||
],
|
||||
"console": "integratedTerminal"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -8,11 +8,13 @@ module.exports = {
|
||||
{
|
||||
displayName: 'unit',
|
||||
testMatch: ['<rootDir>/tests/unit/*.test.js'],
|
||||
testPathIgnorePatterns: ['example.test'],
|
||||
},
|
||||
// Integration Tests (Jest)
|
||||
{
|
||||
displayName: 'integration',
|
||||
testMatch: ['<rootDir>/tests/integration/*.test.js'],
|
||||
testPathIgnorePatterns: ['example.test'],
|
||||
},
|
||||
// E2E Tests (Jest + Playwright)
|
||||
{
|
||||
@@ -21,6 +23,7 @@ module.exports = {
|
||||
globalTeardown: './tests/e2e/config/jest.teardown.js',
|
||||
preset: 'jest-playwright-preset',
|
||||
testMatch: ['<rootDir>/tests/e2e/*.test.js'],
|
||||
testPathIgnorePatterns: ['example.test'],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user