From f6a5900b36265630ea84e11d266989f29c04badc Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Tue, 5 Sep 2023 11:05:19 +0100 Subject: [PATCH] chore: include basic workspace file with jest configuration (#27008) The upcoming v6 of the [VSCode jest plugin](https://github.com/jest-community/vscode-jest#virtualfolders) allows us to configure our monorepo packages as virtual folders. This makes the built-in Test Explorer work out of the box. image Using the workspace is entirely optional. It can also serve as an example configurations. But it does give a space to add recommended/opinionated VSCode settings without compromising contributor's ability to change `.vscode/settings.json`. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- aws-cdk.code-workspace | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 aws-cdk.code-workspace diff --git a/aws-cdk.code-workspace b/aws-cdk.code-workspace new file mode 100644 index 0000000000000..ad498ecc8ae71 --- /dev/null +++ b/aws-cdk.code-workspace @@ -0,0 +1,34 @@ +{ + "folders": [{ "path": "." }], + "settings": { + "jest.jestCommandLine": "node_modules/.bin/jest", + "jest.autoRun": "off", + "jest.virtualFolders": [ + { "name": "aws-cdk", "rootPath": "packages/aws-cdk" }, + { "name": "aws-cdk-lib", "rootPath": "packages/aws-cdk-lib" }, + { + "name": "cli-lib-alpha", + "rootPath": "packages/@aws-cdk/cli-lib-alpha" + }, + { + "name": "custom-resource-handlers", + "rootPath": "packages/@aws-cdk/custom-resource-handlers" + }, + { + "name": "integ-runner", + "rootPath": "packages/@aws-cdk/integ-runner" + }, + { + "name": "integ-tests-alpha", + "rootPath": "packages/@aws-cdk/integ-tests-alpha" + }, + { + "name": "sdk-v2-to-v3-adapter", + "rootPath": "packages/@aws-cdk/sdk-v2-to-v3-adapter" + } + ] + }, + "extensions": { + "recommendations": ["dbaeumer.vscode-eslint", "Orta.vscode-jest"] + } +}