8000 tsconfig.json is not applied in test folder in VSCode · Issue #871 · jaredpalmer/tsdx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
tsconfig.json is not applied in test folder in VSCode #871
Open
@merisbahti

Description

@merisbahti

Current Behavior

Extremely confusing, if I set strict: true in tsconfig, there’s no error for this under the tests/ in vscode:

const f = (input?: number | null | undefined) => {                                                                       
   return input + 1                                                                                                                            
 }

No error in the editor, but error when running tsdx test, this is super confusing, I kept looking for errors in my editor...

Expected behavior

I want it to give me the exact same error, as if it had been used in my code.

Suggested solution(s)

I don’t know, I just feel betrayed and have been searching for a solution for so long. It’s been a huge journey, how do you feel?

Maybe include a warning?

Maybe we strict should be the default, and we should include the tests folder in the include array?

Should we make strict mode the default?

Additional context

Really I might just have needed to vent.

Your environment

Hehe im coding through mosh... but here’s the specs:

System:
    OS: Linux 5.6 Arch Linux
    CPU: (2) x64 Intel(R) Xeon(R) CPU E5-2697 v4 @ 2.30GHz
    Memory: 466.16 MB / 3.85 GB
    Container: Yes
    Shell: 3.1.2 - /usr/bin/fish
  Binaries:
    Node: 14.3.0 - /usr/bin/node
    Yarn: 1.22.4 - /usr/bin/yarn
    npm: 6.14.5 - /usr/bin/npm
  npmPackages:
    tsdx: ^0.13.3 => 0.13.3 
    typescript: ^4.0.2 => 4.0.2 

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0