Jest icin VSCode uzerinde debug yapilandirmasi

typescript, vs code, jest, programming, debug

{
			"name": "Jest",
			"type": "node",
			"request": "launch",
			"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/jest",
			"args": [
				"${input:exchange}",
				"-t",
				"${input:testName}",
				"--runInBand"
				// "--silent=false"
				// "--runInBand",
				// "--watch",
				// "--coverage=false",
				// "--no-cache"
				// "--detectOpenHandles"
			],
			"cwd": "${workspaceRoot}",
			"stopOnEntry": false,
			"console": "integratedTerminal",
			"internalConsoleOptions": "neverOpen",
			"sourceMaps": true,
			"windows": {
				"program": "${workspaceFolder}/node_modules/jest/bin/jest"
			},
			"skipFiles": ["<node_internals>/**", "**/node_modules/**"]
		},
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
	preset: "ts-jest",
	silent: true,
	testEnvironment: "node",
	testMatch: ["**/*.test.ts"],
}

Last updated

© 2024 ~ Yunus Emre Ak ~ yEmreAk