[Bug]: instanceof Date
fails when using a date created from node-api (n-api)
#15169
Labels
instanceof Date
fails when using a date created from node-api (n-api)
#15169
Version
29.7.0
Steps to reproduce
npx @napi-rs/cli new
cd example
src/lib.rs
with a date creating functionyarn napi build
yarn add jest
yarn jest example.test.ts
Expected behavior
I expect
expect(date).toBeInstanceOf(Date)
to be true.Actual behavior
it is not true
Additional context
running it outside of jest works fine. Originally reported here, but was determined to be a bug within jest
Environment
The text was updated successfully, but these errors were encountered: