hirezio / given

A monorepo for jasmine / jest addons that help you clean up your microtests by breaking them into a Given / When / Then structure.
MIT License
21 stars 4 forks source link

DeprecationWarning: Invalid 'main' field when using Node 16 #17

Open DmitryEfimenko opened 1 year ago

DmitryEfimenko commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Install and configure the package into any of your projects
  2. Use Node V16
  3. Attempt to run unit tests
  4. Observe a warning

    (node:40888) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Source\myProject\node_modules\karma-jasmine-given\package.json' of 'lib/index.js'. Please either fix that or report it to the module author

Expected behavior The warning should not be shown

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Here's the reason: https://nodejs.org/api/deprecations.html#DEP0128