Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

working jest vs mocha expect #5

Merged
merged 1 commit into from
Jan 17, 2019

Conversation

bahmutov
Copy link
Contributor

@bahmutov bahmutov commented Jan 17, 2019

So the only surprising solution I have found

  • has separate tsconfig.json in test/unit and test/e2e folders.
  • adds /// <reference types="jest" /> comment to each unit spec file

I don't know why listing explicitly jest as a type in test/unit/tsconfig.json does not generate the same result. Or why the file test/unit/tsconfig.json is even necessary for this to work - without this dummy file I could not get expect from jest to work!

screen shot 2019-01-16 at 9 38 13 pm

@HamedFathi HamedFathi merged commit f125e6b into aurelia-toolbelt:master Jan 17, 2019
@HamedFathi
Copy link
Member

@bahmutov
Thank you, we really appreciate your help. 😊

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants