|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html> |
3 | | -<head> |
4 | | - <meta charset="utf-8"> |
5 | | - <title>TsAppTemplate Tests</title> |
6 | | - <meta name="description" content=""> |
7 | | - <meta name="viewport" content="width=device-width, initial-scale=1"> |
8 | | - |
9 | | - {{content-for "head"}} |
10 | | - {{content-for "test-head"}} |
11 | | - |
12 | | - <link rel="stylesheet" href="/@embroider/virtual/vendor.css"> |
13 | | - <link rel="stylesheet" href="/@embroider/virtual/app.css"> |
14 | | - <link rel="stylesheet" href="/@embroider/virtual/test-support.css"> |
15 | | - |
16 | | - {{content-for "head-footer"}} |
17 | | - {{content-for "test-head-footer"}} |
18 | | -</head> |
19 | | -<body> |
20 | | -{{content-for "body"}} |
21 | | -{{content-for "test-body"}} |
22 | | - |
23 | | -<div id="qunit"></div> |
24 | | -<div id="qunit-fixture"> |
25 | | - <div id="ember-testing-container"> |
26 | | - <div id="ember-testing"></div> |
27 | | - </div> |
28 | | -</div> |
29 | | - |
30 | | -<script src="/testem.js" integrity="" data-embroider-ignore></script> |
31 | | -<script src="/@embroider/virtual/vendor.js"></script> |
32 | | -<script src="/@embroider/virtual/test-support.js"></script> |
33 | | -<script type="module">import "ember-testing";</script> |
34 | | - |
35 | | -<script type="module"> |
36 | | - import { start } from './test-helper'; |
37 | | - import.meta.glob("./**/*.{js,ts,gjs,gts}", { eager: true }); |
38 | | - start(); |
39 | | -</script> |
40 | | - |
41 | | -{{content-for "body-footer"}} |
42 | | -</body> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <title>TsAppTemplate Tests</title> |
| 6 | + <meta name="description" content=""> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 8 | + |
| 9 | + {{content-for "head"}} |
| 10 | + {{content-for "test-head"}} |
| 11 | + |
| 12 | + <link rel="stylesheet" href="/@embroider/virtual/vendor.css"> |
| 13 | + <link rel="stylesheet" href="/@embroider/virtual/app.css"> |
| 14 | + <link rel="stylesheet" href="/@embroider/virtual/test-support.css"> |
| 15 | + |
| 16 | + {{content-for "head-footer"}} |
| 17 | + {{content-for "test-head-footer"}} |
| 18 | + </head> |
| 19 | + <body> |
| 20 | + {{content-for "body"}} |
| 21 | + {{content-for "test-body"}} |
| 22 | + |
| 23 | + <div id="qunit"></div> |
| 24 | + <div id="qunit-fixture"> |
| 25 | + <div id="ember-testing-container"> |
| 26 | + <div id="ember-testing"></div> |
| 27 | + </div> |
| 28 | + </div> |
| 29 | + |
| 30 | + <script src="/testem.js" integrity="" data-embroider-ignore></script> |
| 31 | + <script src="/@embroider/virtual/vendor.js"></script> |
| 32 | + <script src="/@embroider/virtual/test-support.js"></script> |
| 33 | + <script type="module">import "ember-testing";</script> |
| 34 | + |
| 35 | + <script type='module'> |
| 36 | + import '../app/inspector-support'; |
| 37 | + globalThis.NO_TEST_AUTO_START = true; |
| 38 | + </script> |
| 39 | + |
| 40 | + <script src="/ember_debug"></script> |
| 41 | + |
| 42 | + <script type="module"> |
| 43 | + import { waitForEmberDebug, start } from '../../shared/tests/test-helper'; |
| 44 | + const tests = import.meta.glob("../../shared/tests/**/*.{js,ts,gjs,gts}"); |
| 45 | + await waitForEmberDebug(); |
| 46 | + await Promise.all(Object.values(tests).map(load => load())); |
| 47 | + start(); |
| 48 | + </script> |
| 49 | + |
| 50 | + {{content-for "body-footer"}} |
| 51 | + </body> |
43 | 52 | </html> |
0 commit comments