Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@aldeed
Copy link
Contributor

@aldeed aldeed commented Nov 26, 2018

Resolves #4752
Impact: minor
Type: test

Issue

Many Jest integration tests were not working

Solution

Update to latest Jest and fix issues with the tests.

Also re-enabled running the Jest integration tests as a CI check, and that seems to be working now! 🤞

Breaking changes

None

Testing

  1. Verify that no Jest tests have test.skip anymore (except a few that were never written but were defined. Latest Jest now requires that you change those to test.skip with a no-op function, which there is still some controversy around.)
  2. Run npm run test:integration locally and verify that all tests pass.

@aldeed aldeed self-assigned this Nov 26, 2018
@spencern spencern self-requested a review November 28, 2018 22:49
Copy link
Contributor

@spencern spencern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple question, but looks good. Tests are passing in CI. 🎉

afterAll(async () => {
await testApp.collections.Shops.remove({ _id: internalShopId });
await testApp.collections.Catalog.remove({ _id: internalCatalogItemId });
await Promise.all(internalTagIds.map((_id) => testApp.collections.Tags.remove({ _id })));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this map just to loop through and remove all the tags?

context: {
appEvents,
collections: this.collections,
getFunctionsOfType: () => [],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a required property for context now?

@spencern spencern merged commit cb4b300 into release-2.0.0-rc.7 Nov 29, 2018
@aldeed aldeed deleted the test-4752-aldeed-fix-integration-tests branch December 17, 2018 00:21
@spencern spencern mentioned this pull request Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants