forked from glimmerjs/glimmer-vm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
43 lines (36 loc) · 1.29 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Glimmer Test Suite</title>
</head>
<body>
<script type="module">
// Do this first so that `@glimmer-workspace/integration-tests` will see the global
// `QUnit`. We should change the code structure here so that we don't
// rely on the global to bootstrap QUnit, but this is fine for now.
const QUnit = await import('qunit');
QUnit.config.autostart = false;
</script>
<script type="module">
import { setupQunit } from '@glimmer-workspace/integration-tests';
const { smokeTest } = await setupQunit();
const packages = await import.meta.glob('./packages/@glimmer/*/test/**/*-test.ts');
const integrationTestFiles = await import.meta.glob(
'./packages/@glimmer-workspace/*/test/**/*-test.ts'
);
let smokeTestFile = './packages/@glimmer-workspace/integration-tests/test/smoke-test.ts';
// evaluate the tests before starting QUnit
for (const [name, pkg] of Object.entries(packages)) {
await pkg();
}
for (const [name, pkg] of Object.entries(integrationTestFiles)) {
if (name === smokeTestFile && !smokeTest) {
continue;
}
await pkg();
}
QUnit.start();
</script>
</body>
</html>