diff --git a/.vscode/launch.json b/.vscode/launch.json index d0fc56bd..97430719 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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" } ] diff --git a/jest.config.js b/jest.config.js index 8b94f05c..5df16042 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,11 +8,13 @@ module.exports = { { displayName: 'unit', testMatch: ['/tests/unit/*.test.js'], + testPathIgnorePatterns: ['example.test'], }, // Integration Tests (Jest) { displayName: 'integration', testMatch: ['/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: ['/tests/e2e/*.test.js'], + testPathIgnorePatterns: ['example.test'], }, ], };