Skip to content

Commit 53a21dc

Browse files
committed
activating "test isolation validation" and adding test to trigger it
Based on the following documentation: https://github.com/emberjs/ember-qunit/blob/master/docs/TEST_ISOLATION_VALIDATION.md
1 parent a92f827 commit 53a21dc

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

tests/test-helper.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ setApplication(Application.create(config.APP));
99

1010
setup(QUnit.assert);
1111

12-
start();
12+
start({
13+
setupTestIsolationValidation: true
14+
});

tests/unit/models/rental-test.js

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { module, test } from 'qunit';
22
import { setupTest } from 'super-rentals/tests/helpers';
3+
import { later } from '@ember/runloop';
34

45
module('Unit | Model | rental', function (hooks) {
56
setupTest(hooks);
@@ -37,4 +38,10 @@ module('Unit | Model | rental', function (hooks) {
3738
rental.category = 'Estate';
3839
assert.strictEqual(rental.type, 'Standalone');
3940
});
41+
42+
test('checking test isolation validation', function (assert) {
43+
assert.expect(1);
44+
later(() => {}, 1000);
45+
assert.ok(true);
46+
});
4047
});

0 commit comments

Comments
 (0)