Skip to content

Repository files navigation

ts-jest-import-meta-bug

Even though the tsconfig.json contains "module": "esnext", running npm test will show the error

 FAIL  ./script.test.ts
  ● Test suite failed to run

    script.ts:2:17 - error TS1343: The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'.

    2     console.log(import.meta)
                      ~~~~~~~~~~~

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages