Skip to content

Commit f6a5900

Browse files
authored
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. <img width="466" alt="image" src="https://github.com/aws/aws-cdk/assets/379814/b98b3736-4713-49d7-bec6-816f14816e73"> 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*
1 parent 993ee48 commit f6a5900

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

aws-cdk.code-workspace

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"folders": [{ "path": "." }],
3+
"settings": {
4+
"jest.jestCommandLine": "node_modules/.bin/jest",
5+
"jest.autoRun": "off",
6+
"jest.virtualFolders": [
7+
{ "name": "aws-cdk", "rootPath": "packages/aws-cdk" },
8+
{ "name": "aws-cdk-lib", "rootPath": "packages/aws-cdk-lib" },
9+
{
10+
"name": "cli-lib-alpha",
11+
"rootPath": "packages/@aws-cdk/cli-lib-alpha"
12+
},
13+
{
14+
"name": "custom-resource-handlers",
15+
"rootPath": "packages/@aws-cdk/custom-resource-handlers"
16+
},
17+
{
18+
"name": "integ-runner",
19+
"rootPath": "packages/@aws-cdk/integ-runner"
20+
},
21+
{
22+
"name": "integ-tests-alpha",
23+
"rootPath": "packages/@aws-cdk/integ-tests-alpha"
24+
},
25+
{
26+
"name": "sdk-v2-to-v3-adapter",
27+
"rootPath": "packages/@aws-cdk/sdk-v2-to-v3-adapter"
28+
}
29+
]
30+
},
31+
"extensions": {
32+
"recommendations": ["dbaeumer.vscode-eslint", "Orta.vscode-jest"]
33+
}
34+
}

0 commit comments

Comments
 (0)