diff --git a/tests/main/tests/integration/relationships/collection/mutating-has-many-test.ts b/tests/main/tests/integration/relationships/collection/mutating-has-many-test.ts index 169ed675f40..2e992aa6786 100644 --- a/tests/main/tests/integration/relationships/collection/mutating-has-many-test.ts +++ b/tests/main/tests/integration/relationships/collection/mutating-has-many-test.ts @@ -395,34 +395,33 @@ function getMutations(): Mutation[] { ]; } -module('Integration | Relationships | Collection | Mutation', function (hooks) { - setupRenderingTest(hooks); - - hooks.beforeEach(function () { - this.owner.register('model:user', User); - }); +getStartingState().forEach((startingState) => { + getMutations().forEach((mutation) => { + module( + `Integration | Relationships | Collection | Mutation > Starting state: ${startingState.name} > Mutation: ${mutation.name}`, + function (hooks) { + setupRenderingTest(hooks); + + hooks.beforeEach(function () { + this.owner.register('model:user', User); + }); - getStartingState().forEach((startingState) => { - module(`Starting state: ${startingState.name}`, function () { - getMutations().forEach((mutation) => { - module(`Mutation: ${mutation.name}`, function () { - getMutations().forEach((mutation2) => { - test(`followed by Mutation: ${mutation2.name}`, async function (assert) { - const store = this.owner.lookup('service:store') as Store; - const user = startingState.cb(store); - const rc = await reactiveContext.call(this, user, { - identity: null, - type: 'user', - fields: [{ name: 'friends', kind: 'hasMany', type: 'user', options: { async: false, inverse: null } }], - }); - rc.reset(); - - await applyMutation(assert, store, user, mutation, rc); - await applyMutation(assert, store, user, mutation2, rc); + getMutations().forEach((mutation2) => { + test(`followed by Mutation: ${mutation2.name}`, async function (assert) { + const store = this.owner.lookup('service:store') as Store; + const user = startingState.cb(store); + const rc = await reactiveContext.call(this, user, { + identity: null, + type: 'user', + fields: [{ name: 'friends', kind: 'hasMany', type: 'user', options: { async: false, inverse: null } }], }); + rc.reset(); + + await applyMutation(assert, store, user, mutation, rc); + await applyMutation(assert, store, user, mutation2, rc); }); }); - }); - }); + } + ); }); });