No type Completion on missing TS props in Tests

Trying to figure out why I don't get the option to implement missing members when I create instances of certain TS types from my tests.
I'm using mocha.

My tests end with .tsx;

My tsconfig.json for my test folder:

{
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": true,
"module": "commonjs",
"target": "es2020",
"types": ["node","mocha", "chai", "react"],
"lib": ["es6"],
"compileOnSave": false,
"jsx": "react",
"sourceMap": false,
"skipLibCheck": true,
"esModuleInterop": true
},
"include": ["./**/*spec.tsx"],
"exclude": ["node_modules","./build"]
}

Shows I'm missing some more properties:

But option + enter from my tests gives me no option like I normally see in production code to add the missing members:

1 comment
Comment actions Permalink

There is no such feature unfortunately, please vote for https://youtrack.jetbrains.com/issue/WEB-47013 to be notified on any progress with it.

For now, I can only suggest using code completion (Ctrl+Space) to add missing properties:

0

Please sign in to leave a comment.