Commit b28bbde
Native Integration for Running Unit Tests in CodeSandbox - Fix (codesandbox#458)
* Adding native integration for unit tests
* Apply jest globals to evaluation
* Creating new Test Manager
* Hooking Test Runner up with Test Manager
* Reset results in test manager on re-evaluation
* Fixing calls to manager from test manager
* Fixing dispatch for test results to Console
* Renaming for clarity (jest-lite, test-runner)
* Fixing jest mock export
* Update Console logging for test message + Find tests in __tests__
- Added support for nested describes
- Added summary messages for test runs
- Log failing tests with file path
- Added support for finding tests in __tests__
-
* Fix for failed message count
* Moving globals to Test Runner class
* Adding typescript support
* Fix manager
* Add test time to summary
* Remove odd file
* Adding myself to contributors
* Refactor TestRunner testGlobals
* Adding myself to README1 parent c57855d commit b28bbde
File tree
3 files changed
+22
-28
lines changed- packages/app/src/sandbox/eval
- tests
3 files changed
+22
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 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 | 4 | | |
28 | 5 | | |
29 | 6 | | |
| |||
63 | 40 | | |
64 | 41 | | |
65 | 42 | | |
66 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
24 | 22 | | |
25 | 23 | | |
| |||
664 | 662 | | |
665 | 663 | | |
666 | 664 | | |
667 | | - | |
| 665 | + | |
668 | 666 | | |
669 | 667 | | |
670 | 668 | | |
| |||
0 commit comments