Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test isolation validation not working #941

Open
tsagadar opened this issue Jun 17, 2022 · 0 comments
Open

Test isolation validation not working #941

tsagadar opened this issue Jun 17, 2022 · 0 comments

Comments

@tsagadar
Copy link

Based on the test isolation validation documentation I adjusted the Super Rental example to contain a test that should trigger the validation - but it won't (code can be found here).

Turns out that test execution is done with waitForSettled = true. As a result, the isolation validation at the end of each test will never check for problems:

  test.finish = function () {
    let doFinish = () => finish.apply(this, arguments);

    if (isSettled()) {
      return doFinish(); // <--- always ends up here
    } else {
       ...               // <--- here the validation would happen
    }

Setting waitForSettled = false in setupTestIsolationValidation has no effect as it is done too late - start already initialised all the tests and set waitForSettled = true in the qunit context.

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

No branches or pull requests

1 participant