Skip to content

Exclude node_modules from test-tsconfig.json #86

Description

@zFernand0

This same issue may apply to other plugins as well.
Solution:

  • Remove fs-extra from the __tests__/__src__/environment/TestEnvironment.ts

Downgraded @types/fs-extra for various reasons:

  • the test-tsconfig.json cannot properly exclude the @types/fs-extra package since the TestEnvironment.ts uses if for mkdirpSync
  • tsconfig.json has to include it's node_modules/typings. See https://stackoverflow.com/a/67512016/16555983
  • @types/fs-extra@^9.0.5 has issues that we may be able to avoid with
    tsconfig.json#compilerOptions.skipLibCheck: true

Note: We may have to upgrade to newer versions of this package for security reasons.

Originally posted by @zFernand0 in #85 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions