Skip to content

While running unit test cases getting Nodehun module not found error #113

@sumit-expleo

Description

@sumit-expleo

TEST_CASE

Cannot find module 'nodehun' from 'spell-check/spell-check-nodehun.service.ts'

  1 | import { Injectable } from '@nestjs/common';
> 2 | import { Nodehun } from 'nodehun';
    | ^
  3 | import { readFile } from '../core-helpers/utils/storage.helper';
  4 |
  5 | @Injectable()

  at Resolver.resolveModule (../node_modules/jest-resolve/build/resolver.js:324:11)
  at Object.<anonymous> (spell-check/spell-check-nodehun.service.ts:2:1)

I am not able to run a unit test using Jest, which has Node.js integrated. I am getting a module not found error in Node.js (nestJS). Please provide solutions for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions