When I set experimentalDecorators to true in tsconfig.json it works ok for files in "src", but it doesn't work for files in "test" (vscode marks decorators in red, but it works ok when running 'test')
When experimentalDecorators is set to true in tsconfig.json it should also be for vscode test files
Add a tsconfig.json file to the tests folder:
{
"extends": "../tsconfig.json",
"include": ["."]
}
with any other overrides that might be needed to make tests work and make jest use that one.
Libs that use experimental decorators
N/A
N/A
Ok, apparently as of v0.5.7 decorators do work for tests and builds, but vscode complains when they are used inside tests
One way I found to fix this was including the following tsconfig.json inside the tests folder
{
"extends": "../tsconfig.json",
"include": ["."]
}
I think #225 ended up duplicating this and #226 fixed it in the templates. Though this is a great workaround
Most helpful comment
One way I found to fix this was including the following tsconfig.json inside the tests folder