-
Notifications
You must be signed in to change notification settings - Fork 23
fix(loadModule): missing getTenantRootModule #152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might need to open a PR to add some expect.assertion
calls to the other async
tests (out of scope for this PR)
I wonder if we could use an ESLint rule for that? 🤔
@@ -1254,14 +1261,53 @@ describe('loadModule.node', () => { | |||
}); | |||
}); | |||
|
|||
it('does not load child module when root module does not set getTenantRootModule', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it('does not load child module when root module does not set getTenantRootModule', async () => { | |
it('does not load child module when root module does not set getTenantRootModule', async () => { | |
expect.assertions(1); |
Why, it does not provide value for |
I've seen test suites pass but upon inspection they were not returning or awaiting the assertions which, when adjusted, were failing. FWIW looks like this is already a rule: |
this is using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enabling jest/prefer-expect-assertions
is a separate scope, so different PR
Description
Motivation and Context
Is possible that root module is built without
getTenantRootModule
.This leads to a bug where child module requires externals, root module does not provide but its skipped validation.
How Has This Been Tested?
Test suite and locally building changes into one-app.
Types of Changes
Checklist:
What is the Impact to Developers Using Holocron?