node.bcrypt.js
node.bcrypt.js copied to clipboard
package json does not exist
i installed bcrypt in my project and it is working but when i run the jest UT for my existing project it is throwing an error
<project Path>\node_modules\bcrypt\package.jsondoes not exist
node version : 18 written logic in typescript
Same problem here
@raptorsj @mikevercoelen Have you tried including copying the package.json file during the typescript build?
Afaik you can control what to include / exclude during the build (transpile to JS)
I have the same problem, node 18 with typescript
Have you been able to make it work? @raptorsj
I have the same problem here, but my problem was when I mocking the fs library with the jest. If you are mocking the fs lib like this:
jest.mock('fs')
You have a problem.