bitovi / bitovi/funcunit

System.import funcunit somehow stops qunit's beforeEach hook to run

Open
#200 11 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
571
Forks
370
PR merge metrics
No merged PRs in 30d

Description

This test fails:
```js
import QUnit from 'steal-qunit';

System.import('funcunit').then(function (F) {
// F.attach(QUnit);
let beforeEachHasRun = false;

QUnit.module('[Functional] System.import funcunit', {
beforeEach(assert) {
beforeEachHasRun = true;
},
afterEach() {
beforeEachHasRun = false;
}
});

QUnit.test('before each ran for this test', function (assert) {
assert.ok(beforeEachHasRun);
});
QUnit.test('before each ran for this test, too', function (assert) {
assert.ok(beforeEachHasRun); //this fails
});
});
```

..notice that the `F.attach(QUnit)` is commented out...

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.