Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tsdx test ignores snapshotSerializers in jest.config.js #100

jameswlane opened this issue May 11, 2019 · 0 comments


None yet
1 participant
Copy link

commented May 11, 2019

Current Behavior

If I run tsdx test --env=jsdom --coverage Jest will not use the snapshot serializers defined in the jest.config.js and fail all my snapshots.

Expected behavior

When I run tsdx test --env=jsdom --coverage it should use the snapshot serializers defined in the jest.config.js.

Suggested solution(s)

Pick up the config in the jest.config.js or be able to define a snapshot serializers via the cli.

Additional context

When I run jest all my snapshots pass.
I am using jest-emotion for the snapshot serializers.

Your environment

Software Version(s)
TSDX 0.5.9
TypeScript 3.4.5
Browser Firefox
npm/Yarn npm
Operating System OSX 10.14.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.