Skip to content

Example repo depicting a change to test behavior when adding dd-trace

Notifications You must be signed in to change notification settings

sfc-gh-jlai/ddtrace-jest-promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

It appears when using dd-trace, promises are resolved to Symbols, and therefore promise comparison cannot occur. That said, promise comparison should probably not be taking place anyhow due to the fact that Jest cannot compare promises (here is an article on the same issue with Jasmine: jasmine/jasmine#1543. Though obviously Jest != Jasmine, the idea is the same - promise cannot be compared because they do not expose any properties to perform the comparison).

How to use

Run npm run test, you should see the test pass.

Then run npn run test:ci, which includes dd-trace, and you'll see the same test fail.

About

Example repo depicting a change to test behavior when adding dd-trace

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published